| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| README.md | 2026-03-21 | 2.3 kB | |
| v2.5.0 source code.tar.gz | 2026-03-21 | 419.4 kB | |
| v2.5.0 source code.zip | 2026-03-21 | 499.7 kB | |
| Totals: 3 Items | 921.4 kB | 1 | |
Hello everyone, it's once again time for a new release of LuaSnip :)
While this is prompted by a fix to a breaking change in Neovim 0.12, it contains a relatively complete overhaul of snippet updates, which marinated for some time in [#1137], and then on master.
Self-Dependent DynamicNode
This change allows dynamicNodes to trigger updates that completely replace them. While technically possible before, it is now fully supported and allows fun stuff like replacing spaces with underscores and uppercasing everything
https://github.com/user-attachments/assets/846a3efb-36d8-4db6-be44-7436629ccb40
or "moving" entire expanded snippets around within choiceNodes via restoreNode (which does not require any changes, it's just possible now):
https://github.com/user-attachments/assets/aa365b16-c465-4d5c-9f09-cee04708ef2d
Snippet source
:::lua s("test", { c(1, { fmta([[ { "item1": "<c1>", "item2": "<c2>" } ]], { c1 = r(1, "c1", i(1)), c2 = r(2, "c2", i(1)), }), fmta([[ [ "<c1>", "<c2>" ] ]], { c1 = r(1, "c1"), c2 = r(2, "c2"), }) }) }For more details, check the section in DOC.md (github.com)
Other Additions
- [#1416] by @bew is the first landed PR of a longer sequence of yet-to-be-reviewed ( :grimacing: ) improvements to the accuracy of luasnip's annotations!
- [#1403] fixes a misbehaviour of
extend_decoratorwithparse_snippet, by @SPLYASHKA. - [#1430] is the patch the aforementioned breaking change in neovim, courtesy of @kmoschcau :pray:
New Contributors
- @SPLYASHKA made their first contribution in https://github.com/L3MON4D3/LuaSnip/pull/1403
- @tywkeene made their first contribution in https://github.com/L3MON4D3/LuaSnip/pull/1410
- @kmoschcau made their first contribution in https://github.com/L3MON4D3/LuaSnip/pull/1430
As always, Thank You! to all new and recurring contributers, especially those that endure my long downtimes (@bew :eyes:) :heart:
Full Changelog: https://github.com/L3MON4D3/LuaSnip/compare/v2.4.1...v2.5.0