vim-autoformat
vim-autoformat copied to clipboard
CSS Beautify Update CLI File Flag
I had to add the following options to my .vimrc to get the CSS Beautifier to work:
let g:formatdef_fixed_css_beautify = '"css-beautify -f- -s ".shiftwidth()'
let g:formatters_css = ['fixed_css_beautify']
This is due to the css-beautify utility not supporting a space between the -f flag and - value. I don't see this marked as an issue on the js-beautify repo.
Could this be due to a difference in versions?
$ css-beautify --help
[email protected]
Possibly related: https://github.com/Chiel92/vim-autoformat/pull/39