Skip to content

Commit

Permalink
Merge pull request nvim-lua#502 from ShashwatAgrawal20/item-selection
Browse files Browse the repository at this point in the history
  • Loading branch information
feoh authored Nov 12, 2023
2 parents a005f15 + af4f51b commit fa94716
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
Expand Up @@ -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(),
Expand Down

0 comments on commit fa94716

Please sign in to comment.