refactor(cmp): move comparator config to cmp spec

This commit is contained in:
Folke Lemaitre committed 2023-06-28 11:26:53 +02:00
1 parent 296d79cfbc
commit 27d3e45df6
2 files changed
+4 -21

No files matched your search

+2
View File
@@ -44,6 +44,7 @@ return {
opts = function()
vim.api.nvim_set_hl(0, "CmpGhostText", { link = "Comment", default = true })
local cmp = require("cmp")
local defaults = require("cmp.config.default")()
return {
completion = {
completeopt = "menu,menuone,noinsert",
@@ -86,6 +87,7 @@ return {
hl_group = "CmpGhostText",
},
},
sorting = defaults.sorting,
}
end,
},