hindent requires a style argument
pnaranja opened this issue · comments
Hello,
The latest hindent version requires at lease a style argument:
$ hindent
hindent: --version --style (fundamental|chris-done|johan-tibell|gibiansky|cramer) --line-length <...> [-X<...>]* []
$ hindent --version
hindent 4.6.3
I've edited the hindent.vim to use johan-tibell for my personal use.
silent! silent exec "!cat % | hindent --style johan-tibell"
exec ':redraw!'
if v:shell_error
echom "Hindent: Parsing error"
else
silent! exec "%!hindent --style johan-tibell"
endif
I guess you could just choose a default style and allow the user to choose in their .vimrc
Hey,
I thought about adding a variable to allow the user to select the style, but then I read latest Cris Done's blog post and apparently since version 5.x hindent silently ignores style arguments and only uses Tibell's style.
So if you update hindent now you'll be using johan-tibell
as the default and only style.
Thanks for the info. I just updated to hindent 5.2.1 and I see it default with johan-tibell
.
Right now, stack install hindent
only provides version 4.6.3.