fix: removing dependency on copilot too expensive

This commit is contained in:
2026-06-06 17:09:17 -04:00
parent 6914bfed15
commit 70d2eb2e65
6 changed files with 206 additions and 179 deletions
+12 -1
View File
@@ -14,6 +14,10 @@ require('blink.cmp').setup({
-- -- example: 'foo_|_bar' will match 'foo_' for 'prefix' and 'foo__bar' for 'full'
-- range = "full",
-- },
-- keymap = {
-- -- Change "<Tab>" to "<Right>" if you prefer the arrow key
-- ["C-y"] = { "select_and_accept", "fallback" },
-- },
menu = {
draw = {
treesitter = { 'lsp' }
@@ -33,8 +37,11 @@ require('blink.cmp').setup({
-- border = "single",
-- },
},
ghost_text = { enabled = false },
-- ghost_text = { enabled = true },
},
-- completion = {
-- ghost_text = { enabled = true },
-- },
cmdline = {
enabled = true,
},
@@ -44,11 +51,14 @@ require('blink.cmp').setup({
org = {'orgmode'}
},
default = { 'orgmode', 'lsp', 'copilot', 'snippets', 'path', 'omni', 'buffer', 'codecompanion', 'markdown' },
-- default = { 'orgmode', 'lsp', 'snippets', 'path', 'omni', 'buffer', 'codecompanion', 'markdown' },
providers = {
codecompanion = {
name = "CodeCompanion" ,
module = "codecompanion.providers.completion.blink",
enabled = true,
score_offset = 100,
async = true,
},
orgmode = {
name = 'Orgmode',
@@ -115,6 +125,7 @@ require('blink.cmp').setup({
-- Blink does not expose its default kind icons so you must copy them all (or set your custom ones) and add Copilot
kind_icons = {
Copilot = "",
CodeCompanion = "",
Text = '󰉿',
Method = '󰊕',
Function = '󰊕',