hlargs.nvim
Highlight arguments' definitions and usages, using Treesitter (by m-demare)
LuaSnip
Snippet Engine for Neovim written in Lua. (by L3MON4D3)
hlargs.nvim | LuaSnip | |
---|---|---|
12 | 77 | |
438 | 3,027 | |
- | - | |
6.0 | 9.2 | |
4 days ago | 10 days ago | |
Lua | Lua | |
GNU General Public License v3.0 only | Apache License 2.0 |
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.
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!
LuaSnip
Posts with mentions or reviews of LuaSnip.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-08-16.
-
UltiSnips – Snippet Solution for Vim
If you're using Neovim, check out LuaSnip: https://github.com/L3MON4D3/LuaSnip
-
What is your preferred snippet plug-in?
I’ve been using LuaSnip and never put much thought into it. And this was mainly because of because it seemed like the default and had good LSP integration. The one downside is that creating custom snippets is not that ergonomic, but I don’t mind it if it’s the price to pay for speed.
-
HTML and Css snippets
You can use LuaSnip and load snippets from VSCode. The documentation is pretty complete, but here is my config in case you want another reference.
-
Enabling python's snippets.
I am trying to add snippets for python, i have LuaSnip and friendly-snippets installed, but for some reason it does not load the snippets. This is how i load the plugins:
-
[Help] Paste triggers in Select mode
There was a similar issue in LuaSnip repo. The culprit was a keymap in the config. Do you happen to have a similar keymap somewhere in your config?
-
My Haskell snippet collection for Neovim - with tree-sitter and LSP
I have decided to extract my Haskell snippets for LuaSnip into a plugin: haskell-snippets.nvim.
-
How do I use template files via Lua?
Not exactly what you're talking about but you could look into LuaSnip?
-
How to setup 'nvim-cmp' properly?
There are a few more resources for new users as well on the official repo, and you can find the implementation in Examples/snippets.lua
-
Does anyone know how to quickly create class, interface, record, ...etc in java with nvim
You mean snippets? If yes, you can try Luasnip and friendly-snippets with nvim-cmp and here's the setup guide. Hope it helps
-
Why does tab sometimes send me to a random position in my buffer?
I had the same issue recently. It was the case when I inserted a snippet but didn't fill out all the placeholders right away. This helped me. This is an autocommand that unlinks the unfinished snippet when you change the mode.
What are some alternatives?
When comparing hlargs.nvim and LuaSnip you can also consider the following projects:
markid - A Neovim extension to highlight same-name identifiers with the same color.
vim-vsnip - Snippet plugin for vim/nvim that supports LSP/VSCode's snippet format.
emmylua-nvim - Neovim emmylua library
ultisnips - UltiSnips - The ultimate snippet solution for Vim. Send pull requests to SirVer/ultisnips!
vim-lsp-cxx-highlight - Vim plugin for C/C++/ObjC semantic highlighting using cquery, ccls, or clangd
friendly-snippets - Set of preconfigured snippets for different languages.
nvim
nvim-snippy - Snippet plugin for Neovim written in Lua
gitsigns.nvim - Git integration for buffers
snippets.nvim
nvim-config
nvim-cmp - A completion plugin for neovim coded in Lua.
hlargs.nvim vs markid
LuaSnip vs vim-vsnip
hlargs.nvim vs emmylua-nvim
LuaSnip vs ultisnips
hlargs.nvim vs vim-lsp-cxx-highlight
LuaSnip vs friendly-snippets
hlargs.nvim vs nvim
LuaSnip vs nvim-snippy
hlargs.nvim vs gitsigns.nvim
LuaSnip vs snippets.nvim
hlargs.nvim vs nvim-config
LuaSnip vs nvim-cmp