vim-autoformat icon indicating copy to clipboard operation
vim-autoformat copied to clipboard

CSS Beautify Update CLI File Flag

Open josheppinette opened this issue 6 years ago • 1 comments

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.

josheppinette avatar Jan 19 '19 02:01 josheppinette

Could this be due to a difference in versions?

$ css-beautify --help
[email protected]

Possibly related: https://github.com/Chiel92/vim-autoformat/pull/39

chtenb avatar Jul 04 '19 09:07 chtenb