diff --git a/docs/manual/release-notes/rl-0.9.md b/docs/manual/release-notes/rl-0.9.md index 79633e00..4a322868 100644 --- a/docs/manual/release-notes/rl-0.9.md +++ b/docs/manual/release-notes/rl-0.9.md @@ -271,8 +271,4 @@ https://github.com/gorbit99/codewindow.nvim - [img-clip.nvim]'s configuration now has it's own DAG entry, separate from image-nvim. -[alv-around](https://github.com/alv-around): - -- Fix `vim.assistant.codecompanion-nvim` lazy loading with [blink-cmp] - diff --git a/modules/plugins/assistant/codecompanion/config.nix b/modules/plugins/assistant/codecompanion/config.nix index 6fbb60fb..fa863b74 100644 --- a/modules/plugins/assistant/codecompanion/config.nix +++ b/modules/plugins/assistant/codecompanion/config.nix @@ -18,18 +18,6 @@ in { package = "codecompanion-nvim"; setupModule = "codecompanion"; inherit (cfg) setupOpts; - - # Register commands with lz.n so Neovim recognizes them immediately - cmd = [ - "CodeCompanion" - "CodeCompanionChat" - "CodeCompanionActions" - "CodeCompanionCmd" - ]; - - # Ensure the plugin loads when entering Insert/Cmdline mode - # so the module is ready when blink.cmp requests it - event = ["InsertEnter" "CmdlineEnter"]; }; }; @@ -45,20 +33,9 @@ in { ]; }; - autocomplete = { - nvim-cmp = { - sources = {codecompanion-nvim = "[codecompanion]";}; - sourcePlugins = ["codecompanion-nvim"]; - }; - blink-cmp = { - setupOpts.sources = { - default = ["codecompanion"]; - providers.codecompanion = { - name = "CodeCompanion"; - module = "codecompanion.providers.completion.blink"; - }; - }; - }; + autocomplete.nvim-cmp = { + sources = {codecompanion-nvim = "[codecompanion]";}; + sourcePlugins = ["codecompanion-nvim"]; }; }; };