diff options
| author | 2026-04-17 10:53:06 +0100 | |
|---|---|---|
| committer | 2026-04-17 10:53:06 +0100 | |
| commit | 5b24ac140753dd16570b9da50e0d71fae9d96aa5 (patch) | |
| tree | 3481e2e5edf0befef12d612902aa4b68aa2d683b | |
| parent | a0364dd9ee5e10260239cf8aacc32b4d0bc0d581 (diff) | |
| download | dotfiles-5b24ac140753dd16570b9da50e0d71fae9d96aa5.tar.gz dotfiles-5b24ac140753dd16570b9da50e0d71fae9d96aa5.tar.bz2 dotfiles-5b24ac140753dd16570b9da50e0d71fae9d96aa5.zip | |
fix: use named mode field for treewalker lazy.nvim key specs
The { "n", "v" } mode table was a 3rd positional element, silently
ignored by lazy.nvim. Movement keys only worked in normal mode, not visual.
Use named mode field to enable both modes.
| -rw-r--r-- | home/.config/nvim/lua/custom/plugins/ts.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/home/.config/nvim/lua/custom/plugins/ts.lua b/home/.config/nvim/lua/custom/plugins/ts.lua index 9bafc60..43a8370 100644 --- a/home/.config/nvim/lua/custom/plugins/ts.lua +++ b/home/.config/nvim/lua/custom/plugins/ts.lua @@ -5,28 +5,28 @@ return { { "<a-k>", "<cmd>Treewalker Up<cr>", - { "n", "v" }, + mode = { "n", "v" }, silent = true, desc = "Moves up to the previous neighbor node", }, { "<a-j>", "<cmd>Treewalker Down<cr>", - { "n", "v" }, + mode = { "n", "v" }, silent = true, desc = "Moves up to the next neighbor node", }, { "<a-h>", "<cmd>Treewalker Left<cr>", - { "n", "v" }, + mode = { "n", "v" }, silent = true, desc = "Moves to the first ancestor node that's on a different line from the current node", }, { "<a-l>", "<cmd>Treewalker Right<cr>", - { "n", "v" }, + mode = { "n", "v" }, silent = true, desc = "Moves to the next node down that's indented further than the current node", }, |
