aboutsummaryrefslogtreecommitdiff
path: root/plugin/prettier.vim
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/prettier.vim')
-rw-r--r--plugin/prettier.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugin/prettier.vim b/plugin/prettier.vim
index d728353..ca35c79 100644
--- a/plugin/prettier.vim
+++ b/plugin/prettier.vim
@@ -55,10 +55,10 @@ let g:prettier#config#trailing_comma = get(g:,'prettier#config#trailing_comma',
let g:prettier#config#parser = get(g:,'prettier#config#parser', 'flow')
" synchronous by default
-command! Prettier call prettier#Prettier(g:prettier#exec_cmd_async)
+command! -nargs=? -range=% Prettier call prettier#Prettier(g:prettier#exec_cmd_async, <line1>, <line2>)
" prettier async
-command! PrettierAsync call prettier#Prettier(1)
+command! -nargs=? -range=% PrettierAsync call prettier#Prettier(1, <line1>, <line2>)
" map command
if !hasmapto('<Plug>(Prettier)') && maparg('<Leader>p', 'n') ==# ''