aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md4
-rw-r--r--doc/prettier.txt4
-rw-r--r--plugin/prettier.vim2
3 files changed, 5 insertions, 5 deletions
diff --git a/README.md b/README.md
index 8b93ef2..eb5e6da 100644
--- a/README.md
+++ b/README.md
@@ -118,7 +118,7 @@ If your are on vim 8+ you can also trigger async formatting by:
You can send to prettier your entire buffer but ensure that it formats only your selection.
-**note: ** differs from `:PrettierFragment` by sending the entire buffer to prettier, allowing identation level to be preserved, but it requires the whole file to be valid.
+**note:** differs from `:PrettierFragment` by sending the entire buffer to prettier, allowing identation level to be preserved, but it requires the whole file to be valid.
```vim
:PrettierPartial
@@ -126,7 +126,7 @@ You can send to prettier your entire buffer but ensure that it formats only your
You can send to prettier your current selection as a fragment of same type as the file being edited.
-**note: ** differs from `:PrettierFragment` by sending only the current selection to prettier, this allows for faster formatting but wont preserve indentation.
+**note:** differs from `:PrettierPartial` by sending only the current selection to prettier, this allows for faster formatting but wont preserve indentation.
```vim
:PrettierFragment
diff --git a/doc/prettier.txt b/doc/prettier.txt
index de2af6e..716f66a 100644
--- a/doc/prettier.txt
+++ b/doc/prettier.txt
@@ -94,7 +94,7 @@ You can check what is the resolved `prettier` cli version by:
You can send to prettier your entire buffer but ensure that it
formats only your selection.
-**note: ** differs from `:PrettierFragment` by sending the entire buffer
+**note:** differs from `:PrettierFragment` by sending the entire buffer
to prettier, allowing identation level to be preserved, but it requires
the whole file to be valid.
>
@@ -103,7 +103,7 @@ the whole file to be valid.
You can send to prettier your current selection as a fragment of same type as
the file being edited.
-**note: ** differs from `:PrettierPartial` by sending only the current selection
+**note:** differs from `:PrettierPartial` by sending only the current selection
to prettier, this allows for faster formatting but wont preserve indentation.
>
:PrettierFragment
diff --git a/plugin/prettier.vim b/plugin/prettier.vim
index 3326f26..a49a2ad 100644
--- a/plugin/prettier.vim
+++ b/plugin/prettier.vim
@@ -174,5 +174,5 @@ nnoremap <silent> <Plug>(PrettierCliPath) :PrettierCliPath<CR>
augroup Prettier
autocmd!
- autocmd BufWritePre *.js,*.jsx,*.mjs,*.ts,*.tsx,*.css,*.less,*.scss,*.json,*.graphql,*.gql,*.markdown,*.md,*.mdown,*.mkd,*.mkdn,*.mdx,*.vue,*.yml,*.yaml,*.html,*.php,*.rb,*.ruby,*.xml noautocmd | call prettier#Autoformat()
+ autocmd BufWritePre *.js,*.jsx,*.mjs,*.ts,*.tsx,*.css,*.less,*.scss,*.json,*.graphql,*.gql,*.markdown,*.md,*.mdown,*.mkd,*.mkdn,*.mdx,*.vue,*.yml,*.yaml,*.html,*.php,*.rb,*.ruby,*.xml noautocmd call prettier#Autoformat()
augroup end