Skip to content

IbrahimShahzad/tree-sitter-kamailio-cfg

Repository files navigation

Tree-Sitter-Kamailio-cfg

This is a tree-sitter grammar for Kamailio configuration files.

Some c like grammar is taken from the tree-sitter-c grammar.

Pre-requisites

Usage

  1. Add the following to your nvim init.lua
local parser_config = require('nvim-treesitter.parsers').get_parser_configs()
parser_config.kamailio_cfg = {
  install_info = {
    url = 'https://github.com/IbrahimShahzad/tree-sitter-kamailio-cfg',
    files = { 'src/parser.c' },
  },s
  branch = 'v0.1.2',
  filetype = 'kamailio',
}
  1. Run :TSInstall kamailio_cfg in nvim.

  2. Set the filetype to kamailio_cfg when opening in neovim.

About

kamailio cfg grammar for tree-sitter

Resources

Stars

Watchers

Forks

Packages

No packages published