-
-
Notifications
You must be signed in to change notification settings - Fork 276
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some inconsistencies in Treesitter support #268
Comments
@joeveiga I think with tree-sitter the color would be more accurate. As you have shown in the screenshot, different kinds of keyword were colored differently. I think this is a feature. @arcticicestudio for me, the elder version and current version (with tree-sitter) are not designed to be very distinguishable. Is it possible to make some improve on this? I forked Nord-vim and make one by myself: |
@joeveiga It happens because developer of a tree sitter parser decided to highlight all camel case words started from the capital letters as a type |
Hi @joeveiga, @crispgm and @vladimir-didenko 👋, thanks for your contributions 👍 This is what I worried about after adding @crispgm Which side is the one highlighted by One problem I see here is that |
@arcticicestudio the left one is tree-sitter from my fork and the right one is official nord-vim. After implementing tree-sitter highlighting, |
Thanks for your patience regarding a reply, it's been busy times again. I want to refer to my comment in the arcticicestudio/nord#157 issue that clarifies my decision about creating a dedicated Nord port for Neovim. This will allow to handle highlighting and any other Neovim specific feature significantly easier when being able to use native Lua APIs instead of being bound to VimScript possibilities only. |
Nord theme was causing issues with tree sitter highlights Was most noticable with org files. nordtheme/vim#268
Are you aware that you can use Lua inside of vim script with the Lua native API? like if has('nvim')
lua << EOF
vim.api.nvim_set_hl(0, "@identifier", { link = "Identifier" })
EOF
endif I am also not sure if the situation changed now a bit with the latest developments in the nvim-treesitter repo. The old |
Thank you for your patience! 🙏🏼 I recently published the first “Northern Post — The state and roadmap of Nord“ announcement which includes all details about the plans and future of the Nord project, including the goal of catching up with the backlog. This issue is part of the backlog and therefore I want to triage and process it to get one step closer to a “clean state“. Read the announcement about reaching the “clean“ contribution triage state in Nord‘s discussions for more details about the goal. Therefore it has been added to the backlog in the central and single-source-of-truth project board that is also described in more detail in the roadmap announcement. The further procedure with this issue is to continue to pursue nordtheme/nord#157 regarding the dedicated Neovim port and deprecations of Neovim-specific implementations in this port like mentioned in my previous comment. @jan-xyz Thanks for the hint regarding the removed @crispgm joeveiga Also thanks again for your contributions! Would be coll if you could check if the changes in |
Hello @arcticicestudio 👋 !
First of all, great theme! I use it everywhere lol.
I was looking forward to the treesitter support for neovim and enabled it right away when it was released over the weekend. I did notice some weird behavior with typescript. In the gif below you can see the file with treesitter highlight enabled on the left side.
You'll notice that some imports have different colors (L12, for example), and also the decorators (
@Component()
,@Input()
, etc.) are different as well. Same with the class name and interfaces in the class declaration.Is this an issue with nord-vim? Or maybe some limitation in treesitter? Please advice.
Thanks!
The text was updated successfully, but these errors were encountered: