-
-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
allow disabling first level of scope indent #824
Comments
I stumbled upon the same issue and helped myself by defining a first highlight without colors.
But would have much more prefered some option like ident_level = 2. |
The proper way to do this is probably to have a hook that can dynamically exclude a scope, here. indent-blankline.nvim/lua/ibl/scope.lua Lines 78 to 82 in 65e20ab
I'm open to add this if someone wants to make a PR. |
Problem
If you have the scope indents enabled, there is no option or hook to disable them in the first column.
As far as I can remember the
show_first_indent_level
option from V2 worked for both regular and scope indents. Now there is justhide_first_space_indent_level
which hides only regular indents.I made this hook to get rid of scope indents in the first column:
but it feels really hacky. I have to hardcode the values:
'┃'
and{ ' ', { "@ibl.whitespace.char.1" } }
, instead of usingindent.whitespace.INDENT
andindent.whitespace.SPACE
as in the built-in hook.Expected behavior
The expected behavior is to have something like
indent.whitespace
enum, but for the scoped indentsThe text was updated successfully, but these errors were encountered: