5 local parser_config = require 'nvim-treesitter.parsers'.get_parser_configs()
6 parser_config.api_notation = {
8 url = vim.fn.expand('%:p:h:h'),
9 files = {'src/parser.c'},
13 vim.api.nvim_create_autocmd({'BufNewFile', 'BufRead'}, {
14 pattern = {'*.api', '*.apinotation'},
15 callback = function () vim.opt.filetype = 'api_notation' end