refactor(cmp): move comparator config to cmp spec

This commit is contained in:
Folke Lemaitre
2023-06-28 11:24:54 +02:00
parent 296d79cfbc
commit 27d3e45df6
2 changed files with 4 additions and 21 deletions

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,
},