fix(cmp): properly set cmp group_index to fix issues with copilot and other sources (#1639)

This commit is contained in:
Folke Lemaitre 2023-10-08 22:32:03 +02:00 committed by GitHub
parent 502d32490b
commit de93848f58
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 9 deletions

View file

@ -17,9 +17,8 @@ return {
},
---@param opts cmp.ConfigSchema
opts = function(_, opts)
table.insert(opts.sources, 1, { name = "codeium", group_index = 2 })
table.insert(opts.sources, 1, { name = "codeium", group_index = 1 })
opts.sorting = opts.sorting or require("cmp.config.default")().sorting
end,
},
}