echasnovski / mini.nvim

Library of 40+ independent Lua modules improving overall Neovim (version 0.8 and higher) experience with minimal effort
MIT License
4.74k stars 179 forks source link

Indentscope: Add option to ignore small scope #815

Closed xzbdmw closed 1 week ago

xzbdmw commented 4 months ago

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.

echasnovski commented 4 months ago

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.

niveK77pur commented 3 months ago

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!

echasnovski commented 1 week ago

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!