summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/init.lua b/init.lua
index 748e7f8..385b19a 100644
--- a/init.lua
+++ b/init.lua
@@ -564,6 +564,9 @@ cmp.setup {
luasnip.lsp_expand(args.body)
end,
},
+ completion = {
+ completeopt = 'menu,menuone,noinsert'
+ },
mapping = cmp.mapping.preset.insert {
['<C-n>'] = cmp.mapping.select_next_item(),
['<C-p>'] = cmp.mapping.select_prev_item(),