From 2df0125ef3c6b493e6a9d46d72445ce2776f312b Mon Sep 17 00:00:00 2001 From: t0xa Date: Wed, 22 Oct 2025 09:32:58 +0300 Subject: [PATCH] CMP: Change default neovim snippet engine to luasnip for expanding completions --- lua/custom/completion.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/custom/completion.lua b/lua/custom/completion.lua index ab16127..f941358 100644 --- a/lua/custom/completion.lua +++ b/lua/custom/completion.lua @@ -49,7 +49,7 @@ cmp.setup { -- Enable luasnip to handle snippet expansion for nvim-cmp snippet = { expand = function(args) - vim.snippet.expand(args.body) + require("luasnip").lsp_expand(args.body) end, },