how to disable indentscope with in indent first level ? #1782
-
Contributing guidelines
Module(s)mini.indentscope Questionhow to disable indentscope with in indent first level ? only start show indentscope with second level or 3 level or 4 level ..... |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
@WingDust What exactly do you mean by If you're referring to the mini.indentscope link, it mentions how to disable it globally ( |
Beta Was this translation helpful? Give feedback.
-
|
There is Not drawing indent line at the first column can be done something like this: local draw_big_level = function(scope) return scope.border.indent > 1 end
require('mini.indentscope').setup({ draw = { predicate = draw_big_level } })Fine-tuning this to fit the concept of "levels" (which probably depends on 'shiftwidth', 'tabstop', and maybe other options) is left to the user. |
Beta Was this translation helpful? Give feedback.



There is
config.draw.predicatespecifically for this. The input has scope structure.Not drawing indent line at the first column can be done something like this:
Fine-tuning this to fit the concept of "levels" (which probably depends on 'shiftwidth', 'tabstop', and maybe other options) is left to the user.