Skip to content

Commit

Permalink
feat(nvim/cmp): max view entries set to 100
Browse files Browse the repository at this point in the history
  • Loading branch information
AhmedAbdulrahman committed Aug 18, 2023
1 parent f2c5102 commit 0082ca1
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions nvim/lua/plugins/cmp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -316,11 +316,12 @@ cmp.setup({
sorting = {
--keep priority weight at 2 for much closer matches to appear above copilot
--set to 1 to make copilot always appear on top
priority_weight = 2,
comparators = {
deprioritize_snippet,
cmp.config.compare.exact,
has_copilot and copilot_cmp.prioritize or nil,
has_copilot and copilot_cmp.score or nil,
has_copilot and copilot_cmp.prioritize or function() end,
has_copilot and copilot_cmp.score or function() end,
cmp.config.compare.offset,
cmp.config.compare.score,
cmp.config.compare.recently_used,
Expand Down Expand Up @@ -354,6 +355,10 @@ cmp.setup({
ghost_text = true,
},

performance = {
max_view_entries = 100,
},

preselect = cmp.PreselectMode.Item,
})

Expand Down

0 comments on commit 0082ca1

Please sign in to comment.