UltiSnips to LuaSnip converter

This page summarizes the projects mentioned and recommended in the original post on /r/neovim

Stream - Scalable APIs for Chat, Feeds, Moderation, & Video.
Stream helps developers build engaging apps that scale to millions with performant and flexible Chat, Feeds, Moderation, and Video APIs and SDKs powered by a global edge network and enterprise-grade infrastructure.
getstream.io
featured
InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com
featured
  1. snippet-converter.nvim

    Bundle snippets from multiple sources and convert them to your format of choice.

    Cool, I've been thinking to add LuaSnip as a target format to snippet-converter.nvim but I didn't think it'd be worth it. After all, LuaSnip can load VSCode-style snippets just fine and those cover most of the features that UltiSnips snippets support.

  2. Stream

    Stream - Scalable APIs for Chat, Feeds, Moderation, & Video. Stream helps developers build engaging apps that scale to millions with performant and flexible Chat, Feeds, Moderation, and Video APIs and SDKs powered by a global edge network and enterprise-grade infrastructure.

    Stream logo
  3. ultisnips_to_luasnip

    Python script that converts simple snippets defined in UltiSnips format to LuaSnip snippets

    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.

  4. vim-vsnip

    Snippet plugin for vim/nvim that supports LSP/VSCode's snippet format.

    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.

  5. luacheck

    A tool for linting and static analysis of Lua code. (by lunarmodules)

    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.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Setting Up Razor Support in Neovim for Enhanced C# Development

    2 projects | dev.to | 26 Jan 2024
  • I can't get snippets to work

    1 project | /r/vim | 18 Oct 2021
  • Which snippet plugin do you recommend?

    6 projects | /r/neovim | 30 May 2021
  • Can't get lsp snippets to work with nvim-compe (tried both snipptets.nvim and vim-vsnip)

    2 projects | /r/neovim | 3 May 2021
  • What is the best "snippets" plugin that works with LSP

    1 project | /r/neovim | 17 Apr 2021