Download Latest Version v2.4.0 source code.tar.gz (336.5 kB)
Email in envelope

Get an email when there's a new version of LuaSnip

Home / v2.4.0
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2025-05-06 3.0 kB
v2.4.0 source code.tar.gz 2025-05-06 336.5 kB
v2.4.0 source code.zip 2025-05-06 413.7 kB
Totals: 3 Items   753.1 kB 0

Highlights

Fix behaviour in macro-replay (#1247)

While probably not the flashiest change, this makes sure that snippets are replayed correctly in macros (:h macro).

https://github.com/user-attachments/assets/cce841fe-fc01-4fa6-8744-2e5e0a8e8af3

Minor improvements/additions

  • [#1162] (by @gokberkgunes) introduces the exit_roots option, which, if enabled, makes it impossible to jump back into a snippet once the final tabstop is reached.
  • [#1175] (by @leiserfg) disambiguates treesitter-languages and filetypes. This is relevant with e.g. latex and tex.
  • [#1180], 1252, 1255, 1282 (by @xudyang1) provide fixes and improve the Makefile for Luasnip on Windows.
  • [#1211] (by @Vanillma) improves the syntax and ftplugin files for snipmate files.
  • [#1209] (by me :) ) provides API for customising the mappings that populate the TM_SELECTED_TEXT and related variables (see [#1208] for more concrete motivation).
  • [#1231] (by @Diegovsky) improves the log-format with timestamps.
  • [#1240] (by @Bekaboo) fixes the behaviour of the max_len option for snippets.
  • [#1264] (by @xudyang1) makes it easy to insert real tabs in snippets generated with fmt.
  • [#1318] (by @bew) lays the groundwork for better lsp-completion and doc for luasnip. Track [#1025] for progress on this.
  • [#1338] (by me!) fixes luasnips usage of the deprecated format of vim.validate.
  • 726062b removes an unnecessary redraw, which leads to less flickering!

New Contributors

Thank you to all new and old contributors :heart:! I'd especially like to highlight @xudyang1, who has done a great job supporting luasnip on windows, Thank You very much!!

Full Changelog: https://github.com/L3MON4D3/LuaSnip/compare/v2.3.0...v2.4.0

Source: README.md, updated 2025-05-06