From 5b24ac140753dd16570b9da50e0d71fae9d96aa5 Mon Sep 17 00:00:00 2001 From: sommerfeld Date: Fri, 17 Apr 2026 10:53:06 +0100 Subject: 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. --- home/.config/nvim/lua/custom/plugins/ts.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'home/.config/nvim') 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 { { "", "Treewalker Up", - { "n", "v" }, + mode = { "n", "v" }, silent = true, desc = "Moves up to the previous neighbor node", }, { "", "Treewalker Down", - { "n", "v" }, + mode = { "n", "v" }, silent = true, desc = "Moves up to the next neighbor node", }, { "", "Treewalker Left", - { "n", "v" }, + mode = { "n", "v" }, silent = true, desc = "Moves to the first ancestor node that's on a different line from the current node", }, { "", "Treewalker Right", - { "n", "v" }, + mode = { "n", "v" }, silent = true, desc = "Moves to the next node down that's indented further than the current node", }, -- cgit v1.2.3-70-g09d2