branch = 'main'
}
}
- vim.api.nvim_create_autocmd({'BufNewFile', 'BufRead'}, {
- pattern = {'*.api', '*.apinotation'},
- callback = function () vim.opt.filetype = 'api_notation' end
+ vim.filetype.add({
+ extension = {
+ api = 'api_notation',
+ apinotation = 'api_notation'
+ }
})
end