Announcing ‘mini.snippets’

announce
reddit
Manage and expand snippets. LSP snippet syntax, flexible loaders, fuzzy prefix matching, interactive snippet session with rich visualization, and more
Author

Evgeni Chasnovski

Published

December 23, 2024

Originally posted on Reddit

Hello, Neovim users!

Let’s celebrate passed December solstice with the long overdue release of mini.snippets - new module of mini.nvim that can manage and expand snippets. It can also be installed using separate GitHub repository.


Snippets are a vital part of my editing workflow. That’s why I wanted to have ‘mini.snippets’ for about 3 years now. My initial plan was to wait and utilize snippet expansion capabilities in core and implement only snippet management (find/load/match/etc). And indeed, when vim.snippet became a thing in 0.10 back in May I used it together with some small set of commonly used snippets.

Due to time consuming development of ‘mini.icons’ and cleaning ‘mini.nvim’ feature backlog, I started ‘mini.snippets’ mid-September. It proved to be outstandingly long development period for various reasons: both external and internal. Some of them are:

But the main thing is that ‘mini.snippets’ is out and it is good. This should take a bit of weight out of my shoulders.

Next thing (after a bit of backlog cleanup) is to add another long overdue feature: snippet support in ‘mini.completion’. As it also requires LSP related work, it might take a while (again).


Features:


Please, check it out and tell me what you think! You can leave your suggestions either here in comments or in dedicated beta-testing issue.

Thanks!