mini.nvim icon indicating copy to clipboard operation
mini.nvim copied to clipboard

Indentscope: Add option to ignore small scope

Open xzbdmw opened this issue 1 year ago • 2 comments

Contributing guidelines

Module(s)

mini.indentscope

Description

Thanks for your plugin! I often find it is disturb to draw animation in small if-else which only contain one or two lines during cursor movement, and I want to show the indent which is one lever "bigger" than small scopes, by that case, goto_top is more useful.

xzbdmw avatar Apr 16 '24 05:04 xzbdmw

Thanks for the issue!

First instinct is that this is a bit too much configuration for what I perceive as not a huge issue. But as this might fit together with possible solution of #568 (via introducing upper bound of when to draw or stop drawing indentscope line), I'll think about it.

echasnovski avatar Apr 16 '24 08:04 echasnovski

I want to second this! A very small scope of 1-3 lines is often not all that interesting to visualize. I was hoping to find an option where I can set the minimum number of lines that should cause the indent to be shown in a nested scope.

Also, this is a really sweet plugin! Thanks a lot for all the work so far!

niveK77pur avatar May 10 '24 15:05 niveK77pur

As I don't think having a solution to #568 via upper bound is a good approach, I am afraid I am going to close this issue. This indeed feels like too much configuration for something that I don't feel like a crucial and/or universally useful feature. Thanks for the suggestion, though!

echasnovski avatar Aug 16 '24 13:08 echasnovski