diff options
author | w0rp <w0rp@users.noreply.github.com> | 2018-11-11 09:57:48 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-11 09:57:48 +0000 |
commit | 7dd460303d38b460373b795f6f74a5b0b967eb48 (patch) | |
tree | c5665bf171b1cb1b7258df63274628b68a95550e /autoload | |
parent | d1d5292178c8553531f4320ba45e3341e4922497 (diff) | |
parent | ed8104b6ab10f63c78e49b60d2468ae2656250e9 (diff) | |
download | ale-7dd460303d38b460373b795f6f74a5b0b967eb48.zip |
Merge pull request #2060 from meain/fixer-pretty-html
Add prettier to html formatters
Diffstat (limited to 'autoload')
-rw-r--r-- | autoload/ale/fix/registry.vim | 2 | ||||
-rw-r--r-- | autoload/ale/fixers/prettier.vim | 1 |
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 = '' |