summaryrefslogtreecommitdiff
path: root/autoload
diff options
context:
space:
mode:
authorAbin Simon <abinsimon10@gmail.com>2018-11-07 12:00:52 +0530
committerAbin Simon <abinsimon10@gmail.com>2018-11-07 12:00:59 +0530
commited8104b6ab10f63c78e49b60d2468ae2656250e9 (patch)
treea0776374803c33fedcaefbcd5ed21702a02e8eb0 /autoload
parentad98cb74488c017a4b23e5a848e37ac5bc0840b0 (diff)
downloadale-ed8104b6ab10f63c78e49b60d2468ae2656250e9.zip
Add prettier to html formatters
Diffstat (limited to 'autoload')
-rw-r--r--autoload/ale/fix/registry.vim2
-rw-r--r--autoload/ale/fixers/prettier.vim1
2 files changed, 2 insertions, 1 deletions
diff --git a/autoload/ale/fix/registry.vim b/autoload/ale/fix/registry.vim
index 98f52232..f8183a4a 100644
--- a/autoload/ale/fix/registry.vim
+++ b/autoload/ale/fix/registry.vim
@@ -56,7 +56,7 @@ let s:default_registry = {
\ },
\ 'prettier': {
\ 'function': 'ale#fixers#prettier#Fix',
-\ 'suggested_filetypes': ['javascript', 'typescript', 'css', 'less', 'scss', 'json', 'json5', 'graphql', 'markdown', 'vue'],
+\ 'suggested_filetypes': ['javascript', 'typescript', 'css', 'less', 'scss', 'json', 'json5', 'graphql', 'markdown', 'vue', 'html'],
\ 'description': 'Apply prettier to a file.',
\ },
\ 'prettier_eslint': {
diff --git a/autoload/ale/fixers/prettier.vim b/autoload/ale/fixers/prettier.vim
index 608240a5..58dea159 100644
--- a/autoload/ale/fixers/prettier.vim
+++ b/autoload/ale/fixers/prettier.vim
@@ -58,6 +58,7 @@ function! ale#fixers#prettier#ApplyFixForVersion(buffer, version_output) abort
\ 'markdown': 'markdown',
\ 'vue': 'vue',
\ 'yaml': 'yaml',
+ \ 'html': 'html',
\}
let l:parser = ''