dlvandenberg / tree-sitter-angular

Tree Sitter Grammar for Angular
MIT License
34 stars 9 forks source link

Filetype detection. #37

Closed Ask-786 closed 2 weeks ago

Ask-786 commented 1 month ago

I have created a new issue in neovim about detecting htmlangular filetype.

https://github.com/neovim/neovim/issues/29808

can we do something about it here?

dlvandenberg commented 3 weeks ago

You could create a plugin yourself that marks the filetype as htmlangular when it matches the pattern *.component.html. E.g.:

vim.filetype.add({
  pattern = {
    [".*%.component%.html"] = "htmlangular",
  },
})