snippets.nvim
LuaSnip
Our great sponsors
snippets.nvim | LuaSnip | |
---|---|---|
4 | 65 | |
250 | 1,874 | |
- | - | |
0.0 | 9.7 | |
6 months ago | 1 day ago | |
Lua | Lua | |
GNU General Public License v3.0 only | Apache License 2.0 |
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.
snippets.nvim
-
Which snippet plugin do you prefer? Moving out from ultinips, and pondering the existing choices.
Seems like vim-vsnip and snippets.nvim are popular to migrate into.
-
Which snippet plugin do you recommend?
I'm moving from coc.nvim to built-in LSP and thereby considering changing from UltiSnips to some other snippet plugin, preferably one written in Lua. I've found two different ones: snippets.nvim and LuaSnip. Is there anyone with more experience with either of them that can say whether they are mature enough yet to be used. Or do you recommend some other snippet plugin written in VimL?
-
How do people (with Lua based configs) manage their snippets?
The documentation of snippets.nvim feels nonexisting (only 1 wiki example), so you might just adapt this quite extensive snippets.
LuaSnip
-
HTML auto quoting plugin?
Try this. https://github.com/windwp/nvim-ts-autotag You can also go the snippet way with lua snip https://github.com/L3MON4D3/LuaSnip
-
tsserver configuration options
you can use nvim-lspcofig for LSP support, mason.nvim for installing LSP servers, linters, formatters and debug adapters. nvim-cmp for completions, luasnip for snippets, null-ls for configuring your formatter and linters , lsp-inlayhints for inlay hints.
-
Add completion for non conventional language
You can write your own snippets with LuaSnip. It won’t give you diagnostics capabilities, but autocompletion with LuaSnip is just amazing.
-
Do I have a bug in my configs for neovim and LuaSnip, or is this a bug with LuaSnip?
I'm using LuaSnip with some VSCode snippets I wrote. Expanding snippets works except for usages of VSCode variable transforms.
-
[LazyVim] React and JS snippets - what do you use and how?
LuaSnip read the Add Snippets section and you understand why you need to install friendly-snippets for luasnip
Yeah, that makes sense. Most of the stuff I work on is either newer or just php lol. I have my lspconfig setup to treat .js, .jsx, .ts, and .tsx basically the same way. To actually answer your post, I use LuaSnip. They have support for 'VSCode like snippets' from other plugins and it's pretty easy to have it respect filetypes. https://github.com/L3MON4D3/LuaSnip
-
How do you organise your snippets?
Autocomplete can be done with a "super-tab" setup with nvim-cmp and lsp (see LuaSnip wiki for some more information).
-
[HELP] Configuring Vim-tex in NvChad config
ll is giving me these errors. Also in vim {{ would expand to \left{ \right}. It's not working with NeoVim. I'm using LuaSnip with friendly-snippets with the default config in NvChad.
- How to make available new LSP servers to NeoVim
-
Make lsp-zero.nvim coexists with other plugins instead of controlling them
Here you don't need lsp-zero at all. Install luasnip and have it load the snippet collection you installed (I recommend friendly-snippets).
What are some alternatives?
vim-vsnip - Snippet plugin for vim/nvim that supports LSP/VSCode's snippet format.
ultisnips - UltiSnips - The ultimate snippet solution for Vim. Send pull requests to SirVer/ultisnips!
friendly-snippets - Set of preconfigured snippets for different languages.
nvim-cmp - A completion plugin for neovim coded in Lua.
nvim-snippy - Snippet plugin for Neovim written in Lua
telescope.nvim - Find, Filter, Preview, Pick. All lua, all the time.
which-key.nvim - 💥 Create key bindings that stick. WhichKey is a lua plugin for Neovim 0.5 that displays a popup with possible keybindings of the command you started typing.
coc.nvim - Nodejs extension host for vim & neovim, load extensions like VSCode and host language servers.
omnisharp-roslyn - OmniSharp server (HTTP, STDIO) based on Roslyn workspaces
nvim-web-devicons - lua `fork` of vim-web-devicons for neovim