diff options
| author | 2026-04-21 01:24:36 +0100 | |
|---|---|---|
| committer | 2026-04-21 01:24:36 +0100 | |
| commit | 4260b23f59752ca9e88161f649285da3cce82982 (patch) | |
| tree | a4670b66f61ef493c846f61e315c8e5967726974 /dot_config/nvim/lua/plugins/treesitter.lua | |
| parent | d029bb7b934c9ebe0ef82f159cd7332715860ec3 (diff) | |
| download | dotfiles-4260b23f59752ca9e88161f649285da3cce82982.tar.gz dotfiles-4260b23f59752ca9e88161f649285da3cce82982.tar.bz2 dotfiles-4260b23f59752ca9e88161f649285da3cce82982.zip | |
style(lua): apply stylua formatting
Diffstat (limited to 'dot_config/nvim/lua/plugins/treesitter.lua')
| -rw-r--r-- | dot_config/nvim/lua/plugins/treesitter.lua | 74 |
1 files changed, 66 insertions, 8 deletions
diff --git a/dot_config/nvim/lua/plugins/treesitter.lua b/dot_config/nvim/lua/plugins/treesitter.lua index a4a488c..69902c6 100644 --- a/dot_config/nvim/lua/plugins/treesitter.lua +++ b/dot_config/nvim/lua/plugins/treesitter.lua @@ -1,13 +1,71 @@ require("treewalker").setup({}) -vim.keymap.set({ "n", "v" }, "<a-k>", "<cmd>Treewalker Up<cr>", { silent = true, desc = "Moves up to the previous neighbor node" }) -vim.keymap.set({ "n", "v" }, "<a-j>", "<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-k>", + "<cmd>Treewalker Up<cr>", + { silent = true, desc = "Moves up to the previous neighbor node" } +) +vim.keymap.set( + { "n", "v" }, + "<a-j>", + "<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", + } +) require("nvim-treesitter").install({ "awk", |
