CMP: Change default neovim snippet engine to luasnip for expanding completions

This commit is contained in:
t0xa 2025-10-22 09:32:58 +03:00
parent 98d48f72d6
commit 2df0125ef3

View file

@ -49,7 +49,7 @@ cmp.setup {
-- Enable luasnip to handle snippet expansion for nvim-cmp -- Enable luasnip to handle snippet expansion for nvim-cmp
snippet = { snippet = {
expand = function(args) expand = function(args)
vim.snippet.expand(args.body) require("luasnip").lsp_expand(args.body)
end, end,
}, },