mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
feat(angular): Add filetypes pattern to autocommand detection
Angular also support svg file for it's view template
This commit is contained in:
parent
f365fe5270
commit
ad194c7b3a
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue