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, + }, +}