Skip to content

Commit

Permalink
Improve suggestion order
Browse files Browse the repository at this point in the history
  • Loading branch information
ldonnez committed Apr 21, 2024
1 parent b87e82d commit ffa6e80
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .config/nvim/lua/plugins/cmp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,15 @@ function M.config()
return vim_item
end,
},
sorting = {
comparators = {
cmp.config.compare.offset,
cmp.config.compare.exact,
cmp.config.compare.score,
cmp.config.compare.recently_used,
cmp.config.compare.kind,
},
},
})
end

Expand Down

0 comments on commit ffa6e80

Please sign in to comment.