mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-03-05 16:32:56 +00:00
assistant/codecompanion-nvim: fix lazy load with blink-cmp
Enabling codecompanion and blink-cmp, would not install codecompanion. The quick fix was to disable lazy loading all together. This is no longer required
This commit is contained in:
parent
c07410f183
commit
0a6cd48f8b
2 changed files with 30 additions and 3 deletions
|
|
@ -271,4 +271,8 @@ https://github.com/gorbit99/codewindow.nvim
|
||||||
- [img-clip.nvim]'s configuration now has it's own DAG entry, separate from
|
- [img-clip.nvim]'s configuration now has it's own DAG entry, separate from
|
||||||
image-nvim.
|
image-nvim.
|
||||||
|
|
||||||
|
[alv-around](https://github.com/alv-around):
|
||||||
|
|
||||||
|
- Fix `vim.assistant.codecompanion-nvim` lazy loading with [blink-cmp]
|
||||||
|
|
||||||
<!-- vim: set textwidth=80: -->
|
<!-- vim: set textwidth=80: -->
|
||||||
|
|
|
||||||
|
|
@ -18,6 +18,18 @@ in {
|
||||||
package = "codecompanion-nvim";
|
package = "codecompanion-nvim";
|
||||||
setupModule = "codecompanion";
|
setupModule = "codecompanion";
|
||||||
inherit (cfg) setupOpts;
|
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"];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -33,10 +45,21 @@ in {
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
autocomplete.nvim-cmp = {
|
autocomplete = {
|
||||||
|
nvim-cmp = {
|
||||||
sources = {codecompanion-nvim = "[codecompanion]";};
|
sources = {codecompanion-nvim = "[codecompanion]";};
|
||||||
sourcePlugins = ["codecompanion-nvim"];
|
sourcePlugins = ["codecompanion-nvim"];
|
||||||
};
|
};
|
||||||
|
blink-cmp = {
|
||||||
|
setupOpts.sources = {
|
||||||
|
default = ["codecompanion"];
|
||||||
|
providers.codecompanion = {
|
||||||
|
name = "CodeCompanion";
|
||||||
|
module = "codecompanion.providers.completion.blink";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue