kevinhwang91 / nvim-ufo

Not UFO in the sky, but an ultra fold in Neovim.
BSD 3-Clause "New" or "Revised" License
2.16k stars 37 forks source link

Open/Close fold on specific line using api #134

Closed TroySigX closed 1 year ago

TroySigX commented 1 year ago

Feature description

I want to use a keymap to open/close a fold on a specific line (there is also a fold sign on that line as well) via an api

Describe the solution you'd like

Add an api to get the specific fold on that line to allow user open/close fold using keymap

Additional context

No response

kevinhwang91 commented 1 year ago

:h :foldopen and :h :foldclose