ultisnips_to_luasnip
Python script that converts simple snippets defined in UltiSnips format to LuaSnip snippets (by medwatt)
luacheck
A tool for linting and static analysis of Lua code. (by lunarmodules)
ultisnips_to_luasnip | luacheck | |
---|---|---|
3 | 5 | |
3 | 325 | |
- | 1.5% | |
10.0 | 4.6 | |
over 1 year ago | about 1 month 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.
luacheck
Posts with mentions or reviews of luacheck.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-05-10.
-
strict.lua
Luacheck is now maintained by lunarmodules.
-
UltiSnips to LuaSnip converter
I first started by reading some tutorials but most of those used parser combinators. For me, parser combinators always caused some issues sooner or later (at least in Lua when trying to parse recursive / nested nodes). An example project that uses this technique is vim-vsnip: https://github.com/hrsh7th/vim-vsnip/blob/master/autoload/vsnip/snippet/parser.vim. Later, I found out that Luacheck uses a different approach which I liked better: https://github.com/lunarmodules/luacheck/blob/master/src/luacheck/parser.lua. That's the project that helped me the most while writing my own parsers for different snippet engines.
-
What love packages/libraries do you guys currently use and consider essential for every project you guys made?
I'm just a contributor to Gabe, but I use luacheck in my other projects. Install it (with hererocks+luarocks on Win and luarocks elsewhere), set it up in your editor, and you'll get warnings about typos and other potential bugs. luacheckrc lets you configure it: turn off warnings you don't care about, customize it for different files.
-
Local function question, clarification.
Use luacheck to find all global and unused variables in your project.
-
Pure Python Nvim Config
I’m not really really sure what exactly you’re relying on that is so specific to Python, but Lu’s appears to have a static analysis linter. https://github.com/luarocks/luacheck
What are some alternatives?
When comparing ultisnips_to_luasnip and luacheck you can also consider the following projects:
snip-lookup.nvim
snippet-converter.nvim - Bundle snippets from multiple sources and convert them to your format of choice.
luacheck - A tool for linting and static analysis of Lua code.
love-shaderscan - better iteration with shaders in love2d
inspect.lua - Human-readable representation of Lua tables
forechan - Go style CSP for Python
kok-snippets
strong - A Lua library that makes your strings stronger!