From a993bd8977f5e7087e4f5b03fa2ce7c3358debf1 Mon Sep 17 00:00:00 2001 From: abeldekat <58370433+abeldekat@users.noreply.github.com> Date: Wed, 8 Jan 2025 16:46:03 +0000 Subject: [PATCH] fix(mini.snippets): expand function should have body=snippet (#951) Co-authored-by: abeldekat --- lua/blink/cmp/config/snippets.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/blink/cmp/config/snippets.lua b/lua/blink/cmp/config/snippets.lua index cd804e98..1541bf19 100644 --- a/lua/blink/cmp/config/snippets.lua +++ b/lua/blink/cmp/config/snippets.lua @@ -24,7 +24,7 @@ local snippets = { mini_snippets = function(snippet) if not _G.MiniSnippets then error('mini.snippets has not been setup') end local insert = MiniSnippets.config.expand.insert or MiniSnippets.default_insert - insert(snippet) + insert({ body = snippet }) end, }), active = by_preset({