github L3MON4D3/LuaSnip v2.4.0

4 months ago

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).

1729689447.mp4

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 ❤️!
I'd especially like to highlight @xudyang1, who has done a great job supporting luasnip on windows, Thank You very much!!

Full Changelog: v2.3.0...v2.4.0

Don't miss a new LuaSnip release

NewReleases is sending notifications on new releases.