fix(extra-lang-angular): change treesitter attach event to 'BufReadPost' and 'BufNewFile'

This commit is contained in:
Mykhailo Sabatura 2024-06-08 12:59:57 +02:00
parent b2fe17a4dc
commit ea05fa467a

View file

@ -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")