mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-04-11 07:08:37 +00:00

* assistant/codecompanion-nvim: init * assistant/codecompanion-nvim: PR review revisions --------- Co-authored-by: raf <me@notashelf.dev>
27 lines
453 B
Nix
27 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;
|
|
};
|
|
};
|
|
}
|