diff options
Diffstat (limited to 'ar/.config')
| -rw-r--r-- | ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/harpoon2.lua | 7 | ||||
| -rw-r--r-- | ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/mini.lua | 45 |
2 files changed, 52 insertions, 0 deletions
diff --git a/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/harpoon2.lua b/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/harpoon2.lua index 8b6668b..c68f385 100644 --- a/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/harpoon2.lua +++ b/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/harpoon2.lua @@ -51,6 +51,13 @@ return { desc = "Add buffer to harpoon list", }, { + "<leader>hi", + function() + require("harpoon"):list():prepend() + end, + desc = "Prepend buffer to harpoon list", + }, + { "<C-q>", function() local harpoon = require("harpoon") diff --git a/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/mini.lua b/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/mini.lua index d520afc..3c7a35f 100644 --- a/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/mini.lua +++ b/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/mini.lua @@ -1129,4 +1129,49 @@ return { }, }, }, + { + "echasnovski/mini.splitjoin", + version = false, + config = function() + require("mini.splitjoin").setup() + + vim.keymap.set( + "n", + "<leader>zj", + ":lua MiniSplitjoin.toggle()<cr>", + { noremap = true, silent = true, desc = "Trim trailing whitespace" } + ) + vim.keymap.set( + "n", + "<leader>J", + ":lua MiniSplitjoin.join()<cr>", + { noremap = true, silent = true, desc = "Trim trailing whitespace" } + ) + vim.keymap.set( + "n", + "<leader><cr>", + ":lua MiniSplitjoin.split()<cr>", + { noremap = true, silent = true, desc = "Trim trailing whitespace" } + ) + end, + }, + { + "echasnovski/mini.trailspace", + version = false, + config = function() + require("mini.trailspace").setup() + vim.keymap.set( + "n", + "<leader>zt", + ":lua MiniTrailspace.trim()<cr>", + { noremap = true, silent = true, desc = "Trim trailing whitespace" } + ) + vim.keymap.set( + "n", + "<leader>zl", + ":lua MiniTrailspace.trim_last_lines()<cr>", + { noremap = true, silent = true, desc = "Trim trailing empty lines" } + ) + end, + }, } |
