feat(angular): Add filetypes pattern to autocommand detection

Angular also support svg file for it's view template
This commit is contained in:
Radvil 2024-06-12 22:32:11 +08:00
parent f365fe5270
commit ad194c7b3a

View file

@ -17,7 +17,7 @@ return {
vim.list_extend(opts.ensure_installed, { "angular", "scss" })
end
vim.api.nvim_create_autocmd({ "BufReadPost", "BufNewFile" }, {
pattern = { "*.component.html", "*.container.html" },
pattern = { "*.component.html", "*.container.html", "*.component.svg", "*.container.svg" },
callback = function()
vim.treesitter.start(nil, "angular")
end,