From 53b6085367a92740664783330583facd958dbceb Mon Sep 17 00:00:00 2001 From: Josh <56745535+Subjective@users.noreply.github.com> Date: Thu, 6 Jun 2024 05:11:23 -0700 Subject: [PATCH] feat(presets): add descriptions for fold deletion (#504) * feat(presets): add descriptions for fold deletion * feat(presets): add mapping desc for creating fold in visual mode --- lua/which-key/plugins/presets/misc.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lua/which-key/plugins/presets/misc.lua b/lua/which-key/plugins/presets/misc.lua index 388028e1..00373132 100644 --- a/lua/which-key/plugins/presets/misc.lua +++ b/lua/which-key/plugins/presets/misc.lua @@ -32,6 +32,9 @@ local misc = { O = "Open all folds under cursor", c = "Close fold under cursor", C = "Close all folds under cursor", + d = "Delete fold under cursor", + D = "Delete all folds under cursor", + E = "Delete all folds in file", a = "Toggle fold under cursor", A = "Toggle all folds under cursor", v = "Show cursor line", @@ -92,6 +95,7 @@ function M.setup(wk, config) wk.register(mappings, { mode = "n", prefix = "", preset = true }) end end + wk.register({ ["zf"] = "Create fold from selection" }, { mode = "x", prefix = "", preset = true }) end return M