dlvandenberg / tree-sitter-angular

Tree Sitter Grammar for Angular
MIT License
29 stars 8 forks source link

Alternative filetype solution? #31

Closed wmaurer closed 1 week ago

wmaurer commented 3 weeks ago

Any ideas for an alternative filetype solution?

The recommended solution here is to match on files ending with .component.html

However not all projects use this convention. For example the Angular Material project doesn't: https://github.com/angular/components/blob/main/src/material/button/button.html

I don't know how it does it, but the VScode plugin manages to detect if it's an Angular HTML file. ...

dlvandenberg commented 2 weeks ago

I am working on adding filetype detection into vim itself, by checking the file contents

dlvandenberg commented 1 week ago

New filetype detection in afbe7736a4966f22146d857f246eac01cd080773

Update to neovim nightly and nvim-treesitter latest