1 local parser_config = require 'nvim-treesitter.parsers'.get_parser_configs()
2 parser_config.api_notation = {
4 url = 'https://git.sr.ht/~rbdr/tree-sitter-api-notation', -- local path or git repo
5 files = {'src/parser.c'},
9 vim.api.nvim_create_autocmd({'BufNewFile', 'BufRead'}, {
10 pattern = {'*.api', '*.apinotation'},
11 callback = function () vim.opt.filetype = 'api_notation' end