From 4260b23f59752ca9e88161f649285da3cce82982 Mon Sep 17 00:00:00 2001 From: sommerfeld Date: Tue, 21 Apr 2026 01:24:36 +0100 Subject: style(lua): apply stylua formatting --- dot_config/nvim/lua/plugins/treesitter.lua | 74 ++++++++++++++++++++++++++---- 1 file changed, 66 insertions(+), 8 deletions(-) (limited to 'dot_config/nvim/lua/plugins/treesitter.lua') 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" }, "", "Treewalker Up", { silent = true, desc = "Moves up to the previous neighbor node" }) -vim.keymap.set({ "n", "v" }, "", "Treewalker Down", { silent = true, desc = "Moves up to the next neighbor node" }) -vim.keymap.set({ "n", "v" }, "", "Treewalker Left", { silent = true, desc = "Moves to the first ancestor node that's on a different line from the current node" }) -vim.keymap.set({ "n", "v" }, "", "Treewalker Right", { silent = true, desc = "Moves to the next node down that's indented further than the current node" }) -vim.keymap.set("n", "", "Treewalker SwapUp", { silent = true, desc = "Swaps the highest node on the line upwards in the document" }) -vim.keymap.set("n", "", "Treewalker SwapDown", { silent = true, desc = "Swaps the biggest node on the line downward in the document" }) -vim.keymap.set("n", "", "Treewalker SwapLeft", { silent = true, desc = "Swap the node under the cursor with its previous neighbor" }) -vim.keymap.set("n", "", "Treewalker SwapRight", { silent = true, desc = "Swap the node under the cursor with its next neighbor" }) +vim.keymap.set( + { "n", "v" }, + "", + "Treewalker Up", + { silent = true, desc = "Moves up to the previous neighbor node" } +) +vim.keymap.set( + { "n", "v" }, + "", + "Treewalker Down", + { silent = true, desc = "Moves up to the next neighbor node" } +) +vim.keymap.set( + { "n", "v" }, + "", + "Treewalker Left", + { + silent = true, + desc = "Moves to the first ancestor node that's on a different line from the current node", + } +) +vim.keymap.set( + { "n", "v" }, + "", + "Treewalker Right", + { + silent = true, + desc = "Moves to the next node down that's indented further than the current node", + } +) +vim.keymap.set( + "n", + "", + "Treewalker SwapUp", + { + silent = true, + desc = "Swaps the highest node on the line upwards in the document", + } +) +vim.keymap.set( + "n", + "", + "Treewalker SwapDown", + { + silent = true, + desc = "Swaps the biggest node on the line downward in the document", + } +) +vim.keymap.set( + "n", + "", + "Treewalker SwapLeft", + { + silent = true, + desc = "Swap the node under the cursor with its previous neighbor", + } +) +vim.keymap.set( + "n", + "", + "Treewalker SwapRight", + { + silent = true, + desc = "Swap the node under the cursor with its next neighbor", + } +) require("nvim-treesitter").install({ "awk", -- cgit v1.2.3-70-g09d2