mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-03-21 03:46:37 +00:00
Merge pull request #1452 from SmackleFunky/codecompanion
Some checks failed
Set up binary cache / cachix (default) (push) Has been cancelled
Set up binary cache / cachix (maximal) (push) Has been cancelled
Set up binary cache / cachix (nix) (push) Has been cancelled
Treewide Checks / Validate flake (push) Has been cancelled
Treewide Checks / Check formatting (push) Has been cancelled
Treewide Checks / Check source tree for typos (push) Has been cancelled
Treewide Checks / Validate documentation builds (push) Has been cancelled
Treewide Checks / Validate documentation builds-1 (push) Has been cancelled
Treewide Checks / Validate documentation builds-2 (push) Has been cancelled
Treewide Checks / Validate documentation builds-3 (push) Has been cancelled
Treewide Checks / Validate hyperlinks in documentation sources (push) Has been cancelled
Treewide Checks / Validate Editorconfig conformance (push) Has been cancelled
Build and deploy documentation / Check latest commit (push) Has been cancelled
Build and deploy documentation / publish (push) Has been cancelled
Some checks failed
Set up binary cache / cachix (default) (push) Has been cancelled
Set up binary cache / cachix (maximal) (push) Has been cancelled
Set up binary cache / cachix (nix) (push) Has been cancelled
Treewide Checks / Validate flake (push) Has been cancelled
Treewide Checks / Check formatting (push) Has been cancelled
Treewide Checks / Check source tree for typos (push) Has been cancelled
Treewide Checks / Validate documentation builds (push) Has been cancelled
Treewide Checks / Validate documentation builds-1 (push) Has been cancelled
Treewide Checks / Validate documentation builds-2 (push) Has been cancelled
Treewide Checks / Validate documentation builds-3 (push) Has been cancelled
Treewide Checks / Validate hyperlinks in documentation sources (push) Has been cancelled
Treewide Checks / Validate Editorconfig conformance (push) Has been cancelled
Build and deploy documentation / Check latest commit (push) Has been cancelled
Build and deploy documentation / publish (push) Has been cancelled
assistant/codecompanion-nvim: allow adapter to be specified by name and model
This commit is contained in:
commit
8aad181ec9
2 changed files with 36 additions and 4 deletions
|
|
@ -322,6 +322,10 @@ 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.
|
||||||
|
|
||||||
[tlvince](https://github.com/tlvince):
|
[tlvince](https://github.com/tlvince):
|
||||||
|
|
||||||
- Added configuration option for `foldenable`
|
- Added configuration option for `foldenable`
|
||||||
|
|
|
||||||
|
|
@ -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