Open Philogy opened 10 months ago
I ended up missing this part. I assumed that nvim-treesitter would have been able to detect the queries from the package itself but turns out you would need to copy it over.
Thanks for the find on the filetype as well.
Note that neither :TSInstall nor :TSInstallFromGrammar copy query files from the grammar repository. If you want your installed grammar to be useful, you must manually add query files to your local nvim-treesitter installation. Note also that module functionality is only triggered if your language's filetype is correctly identified. If Neovim does not detect your language's filetype by default, you can use [Neovim's vim.filetype.add()](https://neovim.io/doc/user/lua.html#vim.filetype.add()) to add a custom detection rule.
If you use a git repository for your parser and want to use a specific version, you can set the revision key in the install_info table for you parser config.
Could you try copying over the queries from queries/highlights.scm in the tree-sitter-noir package and seeing what it outputs.
Hey, I've opened an issue previously which you've kindly resolved with #2, the tree-sitter parser is now installed with no problems, however, there's two follow-up issues:
.nr
files aren't detected as "noir" files by neovim out-of-the-box, I'd recommend adding the tip "addvim.filetype.add({ extension = { nr = 'noir' } })
in your config to have noir detected.nr
file it doesn't show any highlighting on its own, am I missing something (after I got Neovim to recognize.nr
files asnoir
)? Here's my treesitter config file:Thanks again! 🙏