This is a tree-sitter grammar for Kamailio configuration files.
Some c like grammar is taken from the tree-sitter-c grammar.
- 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',
}
-
Run
:TSInstall kamailio_cfg
in nvim. -
Set the filetype to
kamailio_cfg
when opening in neovim.