diff --git a/neovim/lua/plugins/completion.lua b/neovim/lua/plugins/completion.lua index 9c5e68f..9920814 100644 --- a/neovim/lua/plugins/completion.lua +++ b/neovim/lua/plugins/completion.lua @@ -8,9 +8,11 @@ function M.config_cmp() completeopt = "menuone,noinsert,noselect", autocomplete = false, }, - expand = function(args) - require("luasnip").lsp_expand(args.body) - end, + snippet = { + expand = function(args) + require("luasnip").lsp_expand(args.body) + end, + }, sources = { { name = "nvim_lsp" }, { name = "luasnip" },