mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
fix(extra-lang-angular): use BufEnter to attach angular treesitter
This commit is contained in:
parent
913902ba36
commit
9cf0eb1845
1 changed files with 1 additions and 1 deletions
|
|
@ -14,7 +14,7 @@ return {
|
|||
if type(opts.ensure_installed) == "table" then
|
||||
vim.list_extend(opts.ensure_installed, { "angular", "scss" })
|
||||
end
|
||||
vim.api.nvim_create_autocmd("BufRead", {
|
||||
vim.api.nvim_create_autocmd("BufEnter", {
|
||||
pattern = { "*.component.html", "*.container.html" },
|
||||
callback = function()
|
||||
vim.treesitter.start(nil, "angular")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue