nvim-ufo icon indicating copy to clipboard operation
nvim-ufo copied to clipboard

feat: close fold current line

Open connorwyatt opened this issue 8 months ago • 4 comments

This PR enhances the plugin options so that you can configure it to close all folds matching the close_fold_kinds_for_ft kinds, even if the cursor is inside of one.

I often open C# files with a lot of using statements and want them to be closed by default, but the plugin checks if the cursor is between the fold range when determining whether to fold it or not.

connorwyatt avatar Mar 22 '25 16:03 connorwyatt

Looks good, please update the code.

kevinhwang91 avatar Apr 20 '25 08:04 kevinhwang91

@kevinhwang91 Updated, thanks

connorwyatt avatar Apr 20 '25 08:04 connorwyatt

I think making it an Experimental opt or using a table with filetype as key and bool as value is better.

kevinhwang91 avatar Apr 20 '25 08:04 kevinhwang91

@kevinhwang91 Updated

connorwyatt avatar May 20 '25 21:05 connorwyatt

@kevinhwang91 Not sure if you saw this or not

connorwyatt avatar Jun 09 '25 12:06 connorwyatt

Sorry, I missed your message. LGTM. Thanks!

kevinhwang91 avatar Jun 09 '25 13:06 kevinhwang91