snippet-converter.nvim
LuaSnip
snippet-converter.nvim | LuaSnip | |
---|---|---|
12 | 77 | |
166 | 2,991 | |
- | - | |
3.1 | 9.2 | |
7 months ago | 7 days ago | |
Lua | Lua | |
Mozilla Public License 2.0 | 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.
snippet-converter.nvim
-
How to write `pretty_print`ed json data into a json file?
Afaik there is nothing built into Neovim that can do this. However, I have required this for one of my plugins so I created it. Here is the link: https://github.com/smjonas/snippet-converter.nvim/blob/main/lua/snippet_converter/utils/json_utils.lua. Feel free to use it!
-
UltiSnips to LuaSnip converter
Also, my snipmate parser is probably a good starting point since the grammar is relatively simple: https://github.com/smjonas/snippet-converter.nvim/blob/main/lua/snippet_converter/core/snipmate/body_parser.lua
-
ultisnip or vsnip?
Moved to LuaSnip with the aid of snippert-converter, and it's good. No performance issues, easy to setup with nvim-cmp and works well. Would recommend.
-
[Help] Convert LaTeX UltiSnips Snippets to LuaSnip
Please check out my plugin snippet-converter.nvim which will hopefully save you a lot of time! I have put in a lot of effort to handle as many edge cases as possible so you don't have to worry about line breaks and stuff. Cheers! (Note that this plugin currently only supports vscode_luasnip as a target format not "native" LuaSnip snippets in Lua but VSCode-style snippets should cover 99% of your use cases).
-
From UltiSnips to LuaSnip
Nice article! Luasnip also supports snippet priorities btw so you don't need to delete them. You could also automate the conversion of the snippets using snippet-converter.nvim (hope no one minds a bit of self-advertising here ;). That should surely speed things up a bit.
-
Can I use ultisnip and luasnip together with nvim-cmp
No you would need to convert the snippets to VSCode or SnipMate format first. You can do that using a plugin like snippet-converter.nvim (disclaimer: I am the author of that plugin). Simply set the output format to vscode_luasnip or snipmate_luasnip.
-
How to use the below given plugin in neovim
Shameless plug: you could also try my plugin https://github.com/smjonas/snippet-converter.nvim which can handle many more edge cases :)
-
Initial release of snippet-converter.nvim
I am excited to announce the release of my first own plugin snippet-converter.nvim that I've been working on for the last couple of months!
-
Luasnips, how to get around the awful syntax?
You can try my plugin snippet-converter.nvim, it has not been officially released yet but it's already functional. Sorry for the self-promotion but this seems to solve your problem :) It allows you to write your snippets in UltiSnips format and convert them to VSCode snippets.
-
Make LuaSnip to disable certain snippets from Friendly Snippet?
There does not seem to be a good way to do this at the moment. However, you might be interested in my plugin snippet-converter.nvim that I've been working on for a few months now - the issue you described is one of the use cases of the plugin! It's already usable but there is still some stuff that need to be worked on... If that's done I'll definitely make an announcement on this sub (hopefully in the next weeks) :)
LuaSnip
-
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?
vim-react-snippets - Useful snippets for developing in React (Javascript and Typescript)
vim-vsnip - Snippet plugin for vim/nvim that supports LSP/VSCode's snippet format.
nvim-typora - Bindings for Typora's Markdown in Neovim
ultisnips - UltiSnips - The ultimate snippet solution for Vim. Send pull requests to SirVer/ultisnips!
LunarVim - 🌙 LunarVim is an IDE layer for Neovim. Completely free and community driven.
friendly-snippets - Set of preconfigured snippets for different languages.
vusted - A busted wrapper for testing neovim plugin
nvim-snippy - Snippet plugin for Neovim written in Lua
lualine.nvim - A blazing fast and easy to configure neovim statusline plugin written in pure lua.
snippets.nvim
packer.nvim - A use-package inspired plugin manager for Neovim. Uses native packages, supports Luarocks dependencies, written in Lua, allows for expressive config
nvim-cmp - A completion plugin for neovim coded in Lua.