mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
feat: add folding preview
This commit is contained in:
parent
7d9a395565
commit
33a81c3226
1 changed files with 12 additions and 0 deletions
12
lua/lazyvim/plugins/extras/editor/fold-preview.lua
Normal file
12
lua/lazyvim/plugins/extras/editor/fold-preview.lua
Normal file
|
|
@ -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,
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue