Closed valpackett closed 4 years ago
old code indents by tabstop
size, not by 2
But tabstop
is supposed to only apply to the visual width of an actual \t
, right? I think it makes more sense to indent by indentwidth
The Idea was that you insert \t
character anyway, because this is what Kakoune does, and the plugin decides what to do with it.
I always kept indentwidth
and tabstop
to be the same size. Do you have a usecase where this is not an option?
I wonder if this change makes the plugin work with editorconfig
more nicely though
I always kept indentwidth and tabstop to be the same size. Do you have a usecase where this is not an option?
It's an option, but I don't get why it's necessary. Yes, most space-indented files don't have tabs at all, but why would I change the visual width of the actual \t
when I just want to change what the Tab key does? In neovim, my \t
is always 2 chars wide.
work with editorconfig more nicely though
Not sure how exactly this change is related, but I do the following:
Not sure how exactly this change is related
I think this is a good change. Thanks!
Doesn't make sense to always indent by 2..