mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2025-12-20 17:30:04 +01:00
28 lines
453 B
Nix
28 lines
453 B
Nix
|
|
{
|
||
|
|
config,
|
||
|
|
lib,
|
||
|
|
...
|
||
|
|
}: let
|
||
|
|
inherit (lib.modules) mkIf;
|
||
|
|
|
||
|
|
cfg = config.vim.assistant.codecompanion-nvim;
|
||
|
|
in {
|
||
|
|
config = mkIf cfg.enable {
|
||
|
|
vim = {
|
||
|
|
startPlugins = [
|
||
|
|
"plenary-nvim"
|
||
|
|
];
|
||
|
|
|
||
|
|
lazy.plugins = {
|
||
|
|
codecompanion-nvim = {
|
||
|
|
package = "codecompanion-nvim";
|
||
|
|
setupModule = "codecompanion";
|
||
|
|
inherit (cfg) setupOpts;
|
||
|
|
};
|
||
|
|
};
|
||
|
|
|
||
|
|
treesitter.enable = true;
|
||
|
|
};
|
||
|
|
};
|
||
|
|
}
|