Skip to content

Commit

Permalink
feat(presets): add descriptions for fold deletion (#504)
Browse files Browse the repository at this point in the history
* feat(presets): add descriptions for fold deletion

* feat(presets): add mapping desc for creating fold in visual mode
  • Loading branch information
Subjective authored Jun 6, 2024
1 parent ea4a17d commit 53b6085
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lua/which-key/plugins/presets/misc.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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

0 comments on commit 53b6085

Please sign in to comment.