diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-02-06 07:14:50 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-02-06 07:14:50 +0900 |
| commit | f97af277529d49c78e999ca1a54a12829d54fad9 (patch) | |
| tree | 3a9d041b4d8b757503906b46940b803aeb22c9d8 | |
| parent | 950178c47f25ee7d8fb906a76227085e4dc1fa30 (diff) | |
modified plugins/harpoon2.lua, modified plugins/mini.lua, modified bin/qndl
| -rw-r--r-- | ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/harpoon2.lua | 7 | ||||
| -rw-r--r-- | ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/mini.lua | 45 | ||||
| -rwxr-xr-x | ar/.local/bin/qndl | 2 |
3 files changed, 53 insertions, 1 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, + }, } diff --git a/ar/.local/bin/qndl b/ar/.local/bin/qndl index b22e873..4444130 100755 --- a/ar/.local/bin/qndl +++ b/ar/.local/bin/qndl @@ -64,7 +64,7 @@ case $type in option="--recode-video $encode" ;; esac - cmd="$base --buffer-size 1M --embed-metadata --embed-thumbnail --sponsorblock-remove $format $option" + cmd="$base --buffer-size 1M --embed-metadata --embed-thumbnail --no-sponsorblock $format $option" cmd="${cmd%* }" ;; esac |
