nvim-ufo
nvim-ufo copied to clipboard
feat: close fold current line
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.
Looks good, please update the code.
@kevinhwang91 Updated, thanks
I think making it an Experimental opt or using a table with filetype as key and bool as value is better.
@kevinhwang91 Updated
@kevinhwang91 Not sure if you saw this or not
Sorry, I missed your message. LGTM. Thanks!