ultisnips_to_luasnip
Python script that converts simple snippets defined in UltiSnips format to LuaSnip snippets (by medwatt)
ultisnips_to_luasnip | snip-lookup.nvim | |
---|---|---|
3 | 1 | |
3 | 2 | |
- | - | |
10.0 | 10.0 | |
over 1 year ago | over 1 year ago | |
Python | Lua | |
GNU General Public License v3.0 only | MIT License |
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.
ultisnips_to_luasnip
Posts with mentions or reviews of ultisnips_to_luasnip.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-01-22.
-
Do you want a faster way to create Lua Snippets?
I believe ultisnips has a very intuitive syntax for creating snippets. I wrote a small tool that converts some ultipsnip snippets to luasnip format. The tool can still be improved but I lost motivation after realizing that luasnip has no regex support. Here is it if you want to check it out.
-
Writing a simple parser
Thanks for your reply. Actually, the most recent case where I have wanted to parse something has been with respect to convert "code snippets" from one language to another. Here's an attempt to my solution. It works for simple cases, but failes for cases where things are nested, such as in the example below. This is mostly due to me using any structured approach.
-
UltiSnips to LuaSnip converter
I have been working on converting some of my Ultisnips snippets to LuaSnips and found the process to be quite tedious. I attempted to automate the process and created a script to do so, which can be found here. Some test cases are included. While it's not possible to fully convert Ultisnips snippets to LuaSnip (as it would require converting from Python to Lua), the script is able to handle relatively simple snippets. Even if the snippet doesn't run correctly at first, it should only require a few adjustments to fix. However, since this is the first time I have written a "parser," I would appreciate any assistance, particularly with the recursive (nested) parts of the script.
snip-lookup.nvim
Posts with mentions or reviews of snip-lookup.nvim.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-01-22.
-
Do you want a faster way to create Lua Snippets?
I just recently wrote a plugin to solve how time-consuming it can be to add new snippets: https://github.com/rnprest/snip-lookup.nvim. It doesn’t support the dynamic snippet features of luasnip (your snippets are just yaml strings) but it’s certainly easy to edit on the fly! Would love any feedback you have
What are some alternatives?
When comparing ultisnips_to_luasnip and snip-lookup.nvim you can also consider the following projects:
dotfiles - Bash shell and Vim configuration settings