mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-03-21 11:53:50 +00:00
assistant/codecompanion-nvim: allow adapter to be specified by name and model
This commit is contained in:
parent
baf207654c
commit
b85ae49aae
2 changed files with 36 additions and 4 deletions
|
|
@ -301,4 +301,8 @@ https://github.com/gorbit99/codewindow.nvim
|
||||||
|
|
||||||
- Fix `vim.formatter.conform-nvim.setupOpts.formatters` type for correct merging
|
- Fix `vim.formatter.conform-nvim.setupOpts.formatters` type for correct merging
|
||||||
|
|
||||||
|
[SmackleFunky](https://github.com/SmackleFunky):
|
||||||
|
|
||||||
|
- Updated codecompanion-nvim adapters to allow specifying a model.
|
||||||
|
|
||||||
<!-- vim: set textwidth=80: -->
|
<!-- vim: set textwidth=80: -->
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{lib, ...}: let
|
{lib, ...}: let
|
||||||
inherit (lib.options) mkOption mkEnableOption;
|
inherit (lib.options) mkOption mkEnableOption literalExpression;
|
||||||
inherit (lib.types) int str enum nullOr attrs;
|
inherit (lib.types) int str enum nullOr attrs either submodule;
|
||||||
inherit (lib.nvim.types) mkPluginSetupOption luaInline;
|
inherit (lib.nvim.types) mkPluginSetupOption luaInline;
|
||||||
in {
|
in {
|
||||||
options.vim.assistant = {
|
options.vim.assistant = {
|
||||||
|
|
@ -202,9 +202,23 @@ in {
|
||||||
strategies = {
|
strategies = {
|
||||||
chat = {
|
chat = {
|
||||||
adapter = mkOption {
|
adapter = mkOption {
|
||||||
type = nullOr str;
|
|
||||||
default = null;
|
default = null;
|
||||||
description = "Adapter used for the chat strategy.";
|
description = "Adapter used for the chat strategy.";
|
||||||
|
type = nullOr (either str (submodule {
|
||||||
|
options = {
|
||||||
|
name = mkOption {
|
||||||
|
type = nullOr str;
|
||||||
|
default = null;
|
||||||
|
description = "Name of the Adapter";
|
||||||
|
};
|
||||||
|
|
||||||
|
model = mkOption {
|
||||||
|
type = nullOr str;
|
||||||
|
default = null;
|
||||||
|
description = "Model used for Adapter.";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}));
|
||||||
};
|
};
|
||||||
|
|
||||||
keymaps = mkOption {
|
keymaps = mkOption {
|
||||||
|
|
@ -253,9 +267,23 @@ in {
|
||||||
|
|
||||||
inline = {
|
inline = {
|
||||||
adapter = mkOption {
|
adapter = mkOption {
|
||||||
type = nullOr str;
|
|
||||||
default = null;
|
default = null;
|
||||||
description = "Adapter used for the inline strategy.";
|
description = "Adapter used for the inline strategy.";
|
||||||
|
type = nullOr (either str (submodule {
|
||||||
|
options = {
|
||||||
|
name = mkOption {
|
||||||
|
type = nullOr str;
|
||||||
|
default = null;
|
||||||
|
description = "Name of the Adapter";
|
||||||
|
};
|
||||||
|
|
||||||
|
model = mkOption {
|
||||||
|
type = nullOr str;
|
||||||
|
default = null;
|
||||||
|
description = "Model used for Adapter.";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}));
|
||||||
};
|
};
|
||||||
|
|
||||||
variables = mkOption {
|
variables = mkOption {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue