eraserhd / parinfer-rust

A Rust port of parinfer.
ISC License
546 stars 42 forks source link

[Kakoune] Respect tabstop option #99

Closed adrusi closed 3 years ago

adrusi commented 3 years ago

At least in Kakoune (I haven't tried this implementation with other editors), the indent width seems to be fixed at 4 spaces.

By this I mean that in forms where it's conventional to indent subsequent lines by a constant margin rather than aligning with previous arguments, parinfer always injects 4 spaces on newline, rather than the width determined by the tabstop option. Similarly when indenting using the > and < normal mode keys.

Is there a way to change the indent width to 2 spaces? Regardless, I think that this should be automatically set by the tabstop option.

adrusi commented 3 years ago

I was being dumb and using tabstop instead of indentwidth because I copied my Clojure kakrc config from the adjacent section for Go