diff options
| author | 2026-04-21 01:24:37 +0100 | |
|---|---|---|
| committer | 2026-04-21 01:24:37 +0100 | |
| commit | 382fa580aec083ad6e702a07a9a2180bd08a841e (patch) | |
| tree | f920fffcc7164d7a063259001eeda5a76d627db2 /dot_config/nvim/lua/plugins | |
| parent | fbcb24f9d8f26bc0305c2088f91a4e0fd9e0fa72 (diff) | |
| download | dotfiles-382fa580aec083ad6e702a07a9a2180bd08a841e.tar.gz dotfiles-382fa580aec083ad6e702a07a9a2180bd08a841e.tar.bz2 dotfiles-382fa580aec083ad6e702a07a9a2180bd08a841e.zip | |
style(nvim): drop unused nvmap helper; reformat treesitter keymaps
Also removes a stray ANSI escape in treesitter.lua.
Diffstat (limited to 'dot_config/nvim/lua/plugins')
| -rw-r--r-- | dot_config/nvim/lua/plugins/treesitter.lua | 78 |
1 files changed, 24 insertions, 54 deletions
diff --git a/dot_config/nvim/lua/plugins/treesitter.lua b/dot_config/nvim/lua/plugins/treesitter.lua index 69902c6..4f3ad31 100644 --- a/dot_config/nvim/lua/plugins/treesitter.lua +++ b/dot_config/nvim/lua/plugins/treesitter.lua @@ -12,60 +12,30 @@ vim.keymap.set( "<cmd>Treewalker Down<cr>", { silent = true, desc = "Moves up to the next neighbor node" } ) -vim.keymap.set( - { "n", "v" }, - "<a-h>", - "<cmd>Treewalker Left<cr>", - { - silent = true, - desc = "Moves to the first ancestor node that's on a different line from the current node", - } -) -vim.keymap.set( - { "n", "v" }, - "<a-l>", - "<cmd>Treewalker Right<cr>", - { - silent = true, - desc = "Moves to the next node down that's indented further than the current node", - } -) -vim.keymap.set( - "n", - "<s-a-k>", - "<cmd>Treewalker SwapUp<cr>", - { - silent = true, - desc = "Swaps the highest node on the line upwards in the document", - } -) -vim.keymap.set( - "n", - "<s-a-j>", - "<cmd>Treewalker SwapDown<cr>", - { - silent = true, - desc = "Swaps the biggest node on the line downward in the document", - } -) -vim.keymap.set( - "n", - "<s-a-h>", - "<cmd>Treewalker SwapLeft<cr>", - { - silent = true, - desc = "Swap the node under the cursor with its previous neighbor", - } -) -vim.keymap.set( - "n", - "<s-a-l>", - "<cmd>Treewalker SwapRight<cr>", - { - silent = true, - desc = "Swap the node under the cursor with its next neighbor", - } -) +vim.keymap.set({ "n", "v" }, "<a-h>", "<cmd>Treewalker Left<cr>", { + silent = true, + desc = "Moves to the first ancestor node that's on a different line from the current node", +}) +vim.keymap.set({ "n", "v" }, "<a-l>", "<cmd>Treewalker Right<cr>", { + silent = true, + desc = "Moves to the next node down that's indented further than the current node", +}) +vim.keymap.set("n", "<s-a-k>", "<cmd>Treewalker SwapUp<cr>", { + silent = true, + desc = "Swaps the highest node on the line upwards in the document", +}) +vim.keymap.set("n", "<s-a-j>", "<cmd>Treewalker SwapDown<cr>", { + silent = true, + desc = "Swaps the biggest node on the line downward in the document", +}) +vim.keymap.set("n", "<s-a-h>", "<cmd>Treewalker SwapLeft<cr>", { + silent = true, + desc = "Swap the node under the cursor with its previous neighbor", +}) +vim.keymap.set("n", "<s-a-l>", "<cmd>Treewalker SwapRight<cr>", { + silent = true, + desc = "Swap the node under the cursor with its next neighbor", +}) require("nvim-treesitter").install({ "awk", |
