added preselection to cmp

This commit is contained in:
2025-06-25 23:45:36 -05:00
parent 52fc7dfb73
commit cc3fb9dc2e
+4
View File
@@ -118,6 +118,10 @@ cmp.setup({
completion = cmp.config.window.bordered(),
documentation = cmp.config.window.bordered(),
},
preselect = "item",
completion = {
completeopt = "menu,menuone,noinsert",
},
snippet = {
expand = function(args)
luasnip.lsp_expand(args.body)