diff --git a/lua/lazyvim/plugins/extras/coding/mini-snippets.lua b/lua/lazyvim/plugins/extras/coding/mini-snippets.lua index 7dc57f2f..5740b249 100644 --- a/lua/lazyvim/plugins/extras/coding/mini-snippets.lua +++ b/lua/lazyvim/plugins/extras/coding/mini-snippets.lua @@ -4,18 +4,25 @@ This extra for mini.snippets activates the following: 1. During completion with either cmp or blink, expand lsp snippets 2. To use other snippets: Press in insert mode -Note that there is no completion source. -Other snippets(custom or from friendly-snippets) are handled by pressing in insert mode. +Do note that there are no sources yet for `nvim-cmp` or `blink.cmp`. +This extra will be updated when those sources become available. + +For now, non-lsp snippets(custom or from a plugin aka friendly-snippets) +are handled exclusively by mini.snippets( in insert mode). +This approach is also how the author uses the plugin. In default LazyVim, neither cmp nor blink define the default mappings used by mini.snippets: -- "" to expand -- "" to jump next (dynamically created when in snippet context) -- "" to jump previous (dynamically created when in snippet context) +- to expand +- to jump next (dynamically created when in snippet context) +- to jump previous (dynamically created when in snippet context) -It's difficult to have jump_next or jump_previous working in all cases when mapped to ""/"". -For now, pressing tab inside a snippet just inserts a tab. +It's difficult to have jump_next or jump_previous working in all cases when mapped to /. + +For now, the tab key inside a snippet just inserts a tab. LazyVim will warn the user when jump_next of jump_previous are overriden. +Currently, mini.snippets is in "beta": See https://github.com/echasnovski/mini.nvim/issues/1428 + Example override for your own config: return { {