Skip to content

Commit 7297b99

Browse files
committed
Merge remote-tracking branch 'upstream/master'
- fix(auto-completion): ensure first menu item is selected by default
2 parents 35ad751 + fb51f70 commit 7297b99

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lua/cmp-setup.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ cmp.setup {
1111
luasnip.lsp_expand(args.body)
1212
end,
1313
},
14+
completion = {
15+
completeopt = 'menu,menuone,noinsert'
16+
},
1417
mapping = cmp.mapping.preset.insert {
1518
['<C-n>'] = cmp.mapping.select_next_item(),
1619
['<C-p>'] = cmp.mapping.select_prev_item(),

0 commit comments

Comments
 (0)