fix(cmp): properly set cmp group_index to fix issues with copilot and other sources (#1639)
This commit is contained in:
1 parent
502d32490b
commit
de93848f58
3 files changed
+8
-9
No files matched your search
@@ -70,7 +70,7 @@ return {
|
||||
},
|
||||
---@param opts cmp.ConfigSchema
|
||||
opts = function(_, opts)
|
||||
table.insert(opts.sources, 1, { name = "copilot", group_index = 2 })
|
||||
table.insert(opts.sources, 1, { name = "copilot", group_index = 1 })
|
||||
opts.sorting = opts.sorting or require("cmp.config.default")().sorting
|
||||
table.insert(opts.sorting.comparators, 1, require("copilot_cmp.comparators").prioritize)
|
||||
end,
|
||||
|
||||
Reference in new issue
Block a user