From f97af277529d49c78e999ca1a54a12829d54fad9 Mon Sep 17 00:00:00 2001 From: TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> Date: Thu, 6 Feb 2025 07:14:50 +0900 Subject: modified plugins/harpoon2.lua, modified plugins/mini.lua, modified bin/qndl --- .../TheSiahxyz/lua/thesiahxyz/plugins/harpoon2.lua | 7 ++++ .../TheSiahxyz/lua/thesiahxyz/plugins/mini.lua | 45 ++++++++++++++++++++++ ar/.local/bin/qndl | 2 +- 3 files changed, 53 insertions(+), 1 deletion(-) 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 @@ -50,6 +50,13 @@ return { end, desc = "Add buffer to harpoon list", }, + { + "hi", + function() + require("harpoon"):list():prepend() + end, + desc = "Prepend buffer to harpoon list", + }, { "", function() 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", + "zj", + ":lua MiniSplitjoin.toggle()", + { noremap = true, silent = true, desc = "Trim trailing whitespace" } + ) + vim.keymap.set( + "n", + "J", + ":lua MiniSplitjoin.join()", + { noremap = true, silent = true, desc = "Trim trailing whitespace" } + ) + vim.keymap.set( + "n", + "", + ":lua MiniSplitjoin.split()", + { noremap = true, silent = true, desc = "Trim trailing whitespace" } + ) + end, + }, + { + "echasnovski/mini.trailspace", + version = false, + config = function() + require("mini.trailspace").setup() + vim.keymap.set( + "n", + "zt", + ":lua MiniTrailspace.trim()", + { noremap = true, silent = true, desc = "Trim trailing whitespace" } + ) + vim.keymap.set( + "n", + "zl", + ":lua MiniTrailspace.trim_last_lines()", + { 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 -- cgit v1.2.3