mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-04-08 03:42:12 +00:00
assistant/codecompanion: rename strategies -> interactions
codecompanion.nvim v19 renamed `strategies` to `interactions` (olimorris/codecompanion.nvim#2485). The nvf module still generated the deprecated `strategies` key, which triggers codecompanion's backwards-compat migration shim. That shim replaces any user-provided `interactions` table with `defaults + strategies`, silently discarding user overrides like `interactions.chat.adapter`. Rename the option tree so the generated Lua uses the current `interactions` key and the migration shim is never triggered.
This commit is contained in:
parent
d3304af3d5
commit
3820db92ee
2 changed files with 16 additions and 3 deletions
|
|
@ -199,11 +199,11 @@ in {
|
|||
description = "An adapter is what connects Neovim to an LLM.";
|
||||
};
|
||||
|
||||
strategies = {
|
||||
interactions = {
|
||||
chat = {
|
||||
adapter = mkOption {
|
||||
default = null;
|
||||
description = "Adapter used for the chat strategy.";
|
||||
description = "Adapter used for the chat interaction.";
|
||||
type = nullOr (either str (submodule {
|
||||
options = {
|
||||
name = mkOption {
|
||||
|
|
@ -268,7 +268,7 @@ in {
|
|||
inline = {
|
||||
adapter = mkOption {
|
||||
default = null;
|
||||
description = "Adapter used for the inline strategy.";
|
||||
description = "Adapter used for the inline interaction.";
|
||||
type = nullOr (either str (submodule {
|
||||
options = {
|
||||
name = mkOption {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue