mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
fix(extra-lang-angular): change treesitter attach event to 'BufReadPost' and 'BufNewFile'
This commit is contained in:
parent
b2fe17a4dc
commit
ea05fa467a
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("BufEnter", {
|
||||
vim.api.nvim_create_autocmd({ "BufReadPost", "BufNewFile" }, {
|
||||
pattern = { "*.component.html", "*.container.html" },
|
||||
callback = function()
|
||||
vim.treesitter.start(nil, "angular")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue