From 33a81c32265fcea4809183124d867fd4f3829b60 Mon Sep 17 00:00:00 2001 From: "Dung Duc Huynh (Kaka)" <870029+jellydn@users.noreply.github.com> Date: Thu, 12 Oct 2023 13:50:07 +0000 Subject: [PATCH] feat: add folding preview --- lua/lazyvim/plugins/extras/editor/fold-preview.lua | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 lua/lazyvim/plugins/extras/editor/fold-preview.lua diff --git a/lua/lazyvim/plugins/extras/editor/fold-preview.lua b/lua/lazyvim/plugins/extras/editor/fold-preview.lua new file mode 100644 index 00000000..bed60003 --- /dev/null +++ b/lua/lazyvim/plugins/extras/editor/fold-preview.lua @@ -0,0 +1,12 @@ +return { + -- Folding preview, by default h and l keys are used. + -- On first press of h key, when cursor is on a closed fold, the preview will be shown. + -- On second press the preview will be closed and fold will be opened. + -- When preview is opened, the l key will close it and open fold. In all other cases these keys will work as usual. + { + "anuvyklack/fold-preview.nvim", + event = "BufReadPost", + dependencies = "anuvyklack/keymap-amend.nvim", + config = true, + }, +}