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 authored and GitHub committed 2021-02-18 16:33:02 +09:00
1 parent 0b35c3a5b9
commit 1ee7f6c97b
7 files changed
+24 -1

No files matched your search

+1 -1
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': {
+1
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