all repos

init.lua @ 8bf1b7398e05fcc56dc5fae246592836711deb18

my nvim config
1 files changed, 16 insertions(+), 13 deletions(-)
refactor(copilot): fix completion part, and disable it
Author: Oleksandr Smirnov olexsmir@gmail.com
Committed at: 2025-04-05 15:37:50 +0300
Parent: c587c94
M lua/plugins/copilot.lua

@@ -1,4 +1,4 @@

-local enabled = true +local enabled = false ---@type LazySpec return {

@@ -58,20 +58,23 @@ },

}, }, { - "nvim-cmp", - cond = enabled, + "zbirenbaum/copilot-cmp", + enabled = enabled, + config = true, dependencies = { - { "zbirenbaum/copilot-cmp", config = true }, "copilot.lua", + { + "nvim-cmp", + ---@module "cmp" + ---@param opts cmp.ConfigSchema + opts = function(_, opts) + table.insert(opts.sources, 1, { + name = "copilot", + group_index = 0, + max_item_count = 3, + }) + end, + }, }, - ---@module "cmp" - ---@param opts cmp.ConfigSchema - opts = function(_, opts) - table.insert(opts.sources, 1, { - name = "copilot", - group_index = 0, - max_item_count = 3, - }) - end, }, }