aboutsummaryrefslogtreecommitdiff
path: root/doc/prettier.txt
diff options
context:
space:
mode:
authorMitermayer Reis <mitermayer.reis@gmail.com>2021-06-29 09:01:30 +1000
committerGitHub <noreply@github.com>2021-06-29 09:01:30 +1000
commitb210d32eb46e9256652f63d0f47abe2e9f5d8ee1 (patch)
tree8405d48b8d97f8cf05c41de831d8d549bd0a6ff3 /doc/prettier.txt
parentaa0607ca7a0f61e91365ecf25947312ff4796302 (diff)
parentd1c44f4a2d9f4b52fe13518d09f8b8257d2e7cf5 (diff)
downloadvim-prettier-b210d32eb46e9256652f63d0f47abe2e9f5d8ee1.tar.xz
Merge pull request #304 from 0x000def42/master
Diffstat (limited to 'doc/prettier.txt')
-rw-r--r--doc/prettier.txt8
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/prettier.txt b/doc/prettier.txt
index 716f66a..bbbad05 100644
--- a/doc/prettier.txt
+++ b/doc/prettier.txt
@@ -47,7 +47,7 @@ node and yarn|npm installed globally.
Plug 'prettier/vim-prettier', {
\ 'do': 'yarn install',
\ 'for': ['javascript', 'typescript', 'css',
- \ 'less', 'scss', 'json', 'graphql', 'markdown', 'vue', 'yaml',
+ \ 'less', 'scss', 'json', 'graphql', 'markdown', 'vue', 'svelte', 'yaml',
'html'] }
<
or simply enable for all formats by:
@@ -146,17 +146,17 @@ First ensure that `g:prettier#autoformat` is not enabled on your `vimrc` (it sho
Running before saving sync:
>
- autocmd BufWritePre *.js,*.jsx,*.mjs,*.ts,*.tsx,*.css,*.less,*.scss,*.json,*.graphql,*.md,*.vue,*.yaml,*.html Prettier
+ autocmd BufWritePre *.js,*.jsx,*.mjs,*.ts,*.tsx,*.css,*.less,*.scss,*.json,*.graphql,*.md,*.vue,*.svelte,*.yaml,*.html Prettier
<
Running before saving async (vim 8+):
>
- autocmd BufWritePre *.js,*.jsx,*.mjs,*.ts,*.tsx,*.css,*.less,*.scss,*.json,*.graphql,*.md,*.vue,*.yaml,*.html PrettierAsync
+ autocmd BufWritePre *.js,*.jsx,*.mjs,*.ts,*.tsx,*.css,*.less,*.scss,*.json,*.graphql,*.md,*.vue,*.svelte,*.yaml,*.html PrettierAsync
<
Running before saving, changing text or leaving insert mode:
>
" when running at every change you may want to disable quickfix
let g:prettier#quickfix_enabled = 0
- autocmd BufWritePre,TextChanged,InsertLeave *.js,*.jsx,*.mjs,*.ts,*.tsx,*.css,*.less,*.scss,*.json,*.graphql,*.md,*.vue,*.yaml,*.html PrettierAsync
+ autocmd BufWritePre,TextChanged,InsertLeave *.js,*.jsx,*.mjs,*.ts,*.tsx,*.css,*.less,*.scss,*.json,*.graphql,*.md,*.vue,*.svelte,*.yaml,*.html PrettierAsync
<
Buffer-level custom commands