Change sorting comparators for nvim-cmp
This commit is contained in:
@@ -59,11 +59,7 @@ cmp.setup({
|
|||||||
completion = {completeopt = "menu,menuone,noselect,noinsert,preview"},
|
completion = {completeopt = "menu,menuone,noselect,noinsert,preview"},
|
||||||
experimental = {ghost_text = true},
|
experimental = {ghost_text = true},
|
||||||
sorting = {
|
sorting = {
|
||||||
comparators = {
|
comparators = {cmp.config.compare.sort_text, cmp.config.compare.kind}
|
||||||
cmp.config.compare.exact, cmp.config.compare.score,
|
|
||||||
cmp.config.compare.recently_used, cmp.config.compare.kind,
|
|
||||||
cmp.config.compare.offset
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
documentation = {
|
documentation = {
|
||||||
border = {"╭", "─", "╮", "│", "╯", "─", "╰", "│"},
|
border = {"╭", "─", "╮", "│", "╯", "─", "╰", "│"},
|
||||||
|
|||||||
Reference in New Issue
Block a user