Change sorting comparators for nvim-cmp

This commit is contained in:
2021-12-01 10:46:24 +03:00
parent 4e96eb370f
commit ea26f2c3a1

View File

@@ -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 = {"", "", "", "", "", "", "", ""},