clean up cmp config

This commit is contained in:
tdback 2024-11-12 18:32:00 -05:00
parent 1de0b2f878
commit 996675ce46

View file

@ -13,7 +13,6 @@ return {
vim.opt.shortmess:append("c") vim.opt.shortmess:append("c")
local cmp = require("cmp") local cmp = require("cmp")
cmp.setup({ cmp.setup({
preselect = cmp.PreselectMode.Item, preselect = cmp.PreselectMode.Item,
@ -36,11 +35,7 @@ return {
["<CR>"] = nil, ["<CR>"] = nil,
}, },
snippet = { snippet = { expand = function(args) vim.snippet.expand(args.body) end },
expand = function(args)
vim.snippet.expand(args.body)
end,
},
}) })
end, end,
} }