Fix snippet expansion

This commit is contained in:
ViViDboarder 2022-01-02 22:43:24 -08:00
parent b48edf86de
commit 5a1a907529

View File

@ -8,9 +8,11 @@ function M.config_cmp()
completeopt = "menuone,noinsert,noselect", completeopt = "menuone,noinsert,noselect",
autocomplete = false, autocomplete = false,
}, },
snippet = {
expand = function(args) expand = function(args)
require("luasnip").lsp_expand(args.body) require("luasnip").lsp_expand(args.body)
end, end,
},
sources = { sources = {
{ name = "nvim_lsp" }, { name = "nvim_lsp" },
{ name = "luasnip" }, { name = "luasnip" },