feat: add folding preview

This commit is contained in:
Dung Duc Huynh (Kaka) 2023-10-12 13:50:07 +00:00 committed by GitHub
parent 7d9a395565
commit 33a81c3226
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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