Skip to content

Commit

Permalink
fix(auto-completion): ensure first menu item is selected by default
Browse files Browse the repository at this point in the history
  • Loading branch information
ShashwatAgrawal20 committed Nov 11, 2023
1 parent a005f15 commit af4f51b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions init.lua
Original file line number Diff line number Diff line change
@@ -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(),

0 comments on commit af4f51b

Please sign in to comment.