add support for prettier-ruby to prettier fixer (#3593)

it _does_ need an additional plugin, but when it has the plugin, it
works as expected.
This commit is contained in:
David Buchan-Swanson
2021-02-18 18:33:02 +11:00
committed by GitHub
parent 0b35c3a5b9
commit 1ee7f6c97b
7 changed files with 24 additions and 1 deletions

View File

@@ -107,7 +107,7 @@ let s:default_registry = {
\ },
\ 'prettier': {
\ 'function': 'ale#fixers#prettier#Fix',
\ 'suggested_filetypes': ['javascript', 'typescript', 'css', 'less', 'scss', 'json', 'json5', 'graphql', 'markdown', 'vue', 'html', 'yaml', 'openapi'],
\ 'suggested_filetypes': ['javascript', 'typescript', 'css', 'less', 'scss', 'json', 'json5', 'graphql', 'markdown', 'vue', 'html', 'yaml', 'openapi', 'ruby'],
\ 'description': 'Apply prettier to a file.',
\ },
\ 'prettier_eslint': {

View File

@@ -85,6 +85,7 @@ function! ale#fixers#prettier#ApplyFixForVersion(buffer, version) abort
\ 'yaml': 'yaml',
\ 'openapi': 'yaml',
\ 'html': 'html',
\ 'ruby': 'ruby',
\}
for l:filetype in l:filetypes