Merge pull request #1497 from SecBear/fix/codecompanion-strategies-to-interactions
Some checks are pending
Set up binary cache / cachix (default) (push) Waiting to run
Set up binary cache / cachix (maximal) (push) Waiting to run
Set up binary cache / cachix (nix) (push) Waiting to run
Treewide Checks / Validate flake (push) Waiting to run
Treewide Checks / Check formatting (push) Waiting to run
Treewide Checks / Check source tree for typos (push) Waiting to run
Treewide Checks / Validate documentation builds (push) Waiting to run
Treewide Checks / Validate documentation builds-1 (push) Waiting to run
Treewide Checks / Validate documentation builds-2 (push) Waiting to run
Treewide Checks / Validate documentation builds-3 (push) Waiting to run
Treewide Checks / Validate hyperlinks in documentation sources (push) Waiting to run
Treewide Checks / Validate Editorconfig conformance (push) Waiting to run
Build and deploy documentation / Check latest commit (push) Waiting to run
Build and deploy documentation / publish (push) Blocked by required conditions

assistant/codecompanion: rename strategies -> interactions
This commit is contained in:
raf 2026-04-07 08:17:54 +03:00 committed by GitHub
commit 48b70a8c8a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 16 additions and 3 deletions

View file

@ -33,6 +33,12 @@
controlled via `vim.options.foldenable` directly instead. RIP
`vim.treesitter.foldByDefault` 2026-03-19 - 2026-03-19.
- `vim.assistant.codecompanion-nvim.setupOpts.strategies` has been renamed to
`vim.assistant.codecompanion-nvim.setupOpts.interactions` to match the
upstream codecompanion.nvim v19 rename. If you set options like
`setupOpts.strategies.chat.adapter`, rename them to
`setupOpts.interactions.chat.adapter`.
[Snoweuph](https://github.com/snoweuph)
- "Correct `languages.go.treesitter` to contain all Go file types.
@ -59,6 +65,13 @@
## Changelog {#sec-release-0-9-changelog}
[SecBear](https://github.com/SecBear):
- Renamed `setupOpts.strategies` to `setupOpts.interactions` in the
codecompanion-nvim module to match the upstream v19 rename. The old key
triggered a migration shim that silently discarded user `interactions`
overrides.
[midischwarz12](https://github.com/midischwarz12):
- Changed the prettier-plugin-astro build to use `writableTmpDirAsHomeHook` to

View file

@ -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 {