google / vim-codefmt

Vim plugin for syntax-aware code formatting
Apache License 2.0
1.11k stars 114 forks source link

Consolidate jsbeautify supported formats and allow for sass/scss/less #173

Closed dbarnett closed 1 year ago

dbarnett commented 3 years ago

Deduplicates per-filetype logic in AppliesToBuffer & FormatRange to use a shared _supported_formats definition. In the process, updates AppliesToBuffer to accept sass/scss/less filetypes, where #114 had only fixed them to work via explicit :FormatCode jsbeautify but not via :FormatCode.

@abgeana @awused FYI