From 5a1a9075297299b60e34b67d090db8ec3eff6fa6 Mon Sep 17 00:00:00 2001 From: ViViDboarder Date: Sun, 2 Jan 2022 22:43:24 -0800 Subject: [PATCH] Fix snippet expansion --- neovim/lua/plugins/completion.lua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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" },