fix(extra-angular): reguster angular treesitter without autocmd

This commit is contained in:
Mykhailo Sabatura 2024-06-05 23:55:05 +02:00
parent 4aff4a8d0a
commit 99d62aff1a

View file

@ -20,12 +20,7 @@ return {
[".*%.container%.html"] = "angular.html",
},
})
vim.api.nvim_create_autocmd("FileType", {
pattern = "angular.html",
callback = function()
vim.treesitter.language.register("angular", "angular.html")
end,
})
vim.treesitter.language.register("angular", "angular.html")
end,
},