Skip to content

Commit 6b3bd7f

Browse files
committed
feat: add codecompanion as a source of cmp.
1 parent 8af7c14 commit 6b3bd7f

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

  • lua/modules/configs/completion

lua/modules/configs/completion/cmp.lua

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ return function()
3434
and {
3535
require("copilot_cmp.comparators").prioritize,
3636
require("copilot_cmp.comparators").score,
37-
-- require("cmp_tabnine.compare"),
3837
compare.offset, -- Items closer to cursor will have lower priority
3938
compare.exact,
4039
-- compare.scopes,
@@ -49,7 +48,6 @@ return function()
4948
compare.order,
5049
}
5150
or {
52-
-- require("cmp_tabnine.compare"),
5351
compare.offset, -- Items closer to cursor will have lower priority
5452
compare.exact,
5553
-- compare.scopes,
@@ -92,7 +90,7 @@ return function()
9290

9391
-- set up labels for completion entries
9492
vim_item.menu = setmetatable({
95-
cmp_tabnine = "[TN]",
93+
codecompanion = "[CC]",
9694
copilot = "[CPLT]",
9795
buffer = "[BUF]",
9896
orgmode = "[ORG]",
@@ -194,8 +192,7 @@ return function()
194192
},
195193
{ name = "latex_symbols" },
196194
{ name = "copilot" },
197-
-- { name = "codeium" },
198-
-- { name = "cmp_tabnine" },
195+
{ name = "codecompanion" },
199196
},
200197
experimental = {
201198
ghost_text = {

0 commit comments

Comments
 (0)