aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorLibravatar sommerfeld <[email protected]>2026-04-17 10:53:05 +0100
committerLibravatar sommerfeld <[email protected]>2026-04-17 10:53:05 +0100
commita0364dd9ee5e10260239cf8aacc32b4d0bc0d581 (patch)
tree420d62036aea80b3c8e86103bb46dcc41f6ec4e6
parent28a15408e9fe3ceb8a66ef2750b111101879d6f8 (diff)
downloaddotfiles-a0364dd9ee5e10260239cf8aacc32b4d0bc0d581.tar.gz
dotfiles-a0364dd9ee5e10260239cf8aacc32b4d0bc0d581.tar.bz2
dotfiles-a0364dd9ee5e10260239cf8aacc32b4d0bc0d581.zip
fix: use named fields for codecompanion lazy.nvim key specs
Mode and opts were positional args (positions 3+4) but lazy.nvim only uses positions 1 (lhs) and 2 (rhs). The mode and desc were silently ignored, making all mappings normal-mode only with no descriptions. Use named fields instead. Also fix [C]chat typo to [C]hat.
-rw-r--r--home/.config/nvim/lua/custom/plugins/init.lua18
1 files changed, 12 insertions, 6 deletions
diff --git a/home/.config/nvim/lua/custom/plugins/init.lua b/home/.config/nvim/lua/custom/plugins/init.lua
index 5b92266..a394b91 100644
--- a/home/.config/nvim/lua/custom/plugins/init.lua
+++ b/home/.config/nvim/lua/custom/plugins/init.lua
@@ -479,20 +479,26 @@ return {
{
"<leader>aa",
"<cmd>CodeCompanionActions<cr>",
- { "n", "v" },
- { noremap = true, silent = true, desc = "[A]I [A]ctions" },
+ mode = { "n", "v" },
+ noremap = true,
+ silent = true,
+ desc = "[A]I [A]ctions",
},
{
"<leader>ta",
"<cmd>CodeCompanionChat Toggle<cr>",
- { "n", "v" },
- { noremap = true, silent = true, desc = "[T]oggle [A]I chat" },
+ mode = { "n", "v" },
+ noremap = true,
+ silent = true,
+ desc = "[T]oggle [A]I chat",
},
{
"<leader>ac",
"<cmd>CodeCompanionChat Add<cr>",
- "v",
- { noremap = true, silent = true, desc = "[A]I [C]chat add" },
+ mode = "v",
+ noremap = true,
+ silent = true,
+ desc = "[A]I [C]hat add",
},
},
opts = {