nvim-semantic-tokens
By theHamsta
hlargs.nvim
Highlight arguments' definitions and usages, using Treesitter (by m-demare)
nvim-semantic-tokens | hlargs.nvim | |
---|---|---|
5 | 12 | |
85 | 429 | |
- | - | |
0.0 | 6.4 | |
about 1 year ago | 2 months ago | |
Lua | Lua | |
Apache License 2.0 | GNU General Public License v3.0 only |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
nvim-semantic-tokens
Posts with mentions or reviews of nvim-semantic-tokens.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-09-24.
-
How do I turn off Semantic Tokens?
It seems you could adjust the mapping with the 'plugin' version of this feature, before it was merged. I'm trying to figure out how to achieve what this bit of code was handling now that it's been merged. https://github.com/theHamsta/nvim-semantic-tokens/blob/master/lua/nvim-semantic-tokens/presets/default.lua
-
How can I enable semantic highlighting with CoC and clangd?
I haven't used it but I think theHamsta/nvim-semantic-tokens is what you want.
-
Incomplete syntax highlighting
Just to add to what others said. Clangd also has semantic tokens capabilities, you could enable it with this. But TS highlighting might be more than enough.
-
How do I get good/ complete syntax highlighting in nvim? The tree-sitter one seems suboptimal compared to the VScode's complete and fleshed highlighting. Let me know of any plugins or extensions which can improve the situation for me.
I have been using semantic tokens on neovim for almost a year https://github.com/theHamsta/nvim-semantic-tokens
-
How can I get semantic highlighting working on clangd?
I'm the a uthor of this PR. You need some configuration like with this plugin https://github.com/theHamsta/nvim-semantic-tokens or the
hlargs.nvim
Posts with mentions or reviews of hlargs.nvim.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-04-09.
-
This is why your higlights look different in 9.0
Am I correct to assume that hlargs.nvim is basically obsolete with semantic highlights?
-
Support for semantic token modifiers merged!
Does this effectively remove the need for something like hlargs?
-
Need help with C/C++ setup for proper highlighting and LSP features
Do I need 'hlargs.nvim' plugin?
-
Detailed syntax highlighting
There is also the hlargs plugin, which achieves the exact same highlighting as the screenshot you posted using treesitter instead of the lsp. However, it appears csharp support has only recently been requested. You can follow it here. https://github.com/m-demare/hlargs.nvim/issues/56
-
Is there plugin like hlargs.nvim desirable tree-sitter based but for methods arguments which called? Python for example.
I added the option, it requires some configuration you can find in :h hlargs-extras
-
How do I get good/ complete syntax highlighting in nvim? The tree-sitter one seems suboptimal compared to the VScode's complete and fleshed highlighting. Let me know of any plugins or extensions which can improve the situation for me.
hlargs does this. https://github.com/m-demare/hlargs.nvim
-
I must be missing something
m-demare/hlargs.nvim: Highlight arguments of function/method, because some language servers don't support semantic tokens.
-
hlargs.nvim update
If you haven't seen the previous post, hlargs.nvim allows you to highlight functions' arguments (definitions and usages)
-
hlargs.nvim: Highlight function arguments
Something like these, with lambda functions, nested functions, etc
-
Need help diagnosing slowness in Treesitter related plugin
Here's the WIP, to try it out you just install it and run require('hlargs').setup() Thanks!