aboutsummaryrefslogtreecommitdiff
path: root/autoload/prettier.vim
diff options
context:
space:
mode:
Diffstat (limited to 'autoload/prettier.vim')
-rw-r--r--autoload/prettier.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/autoload/prettier.vim b/autoload/prettier.vim
index 0c369c1..52e9ea8 100644
--- a/autoload/prettier.vim
+++ b/autoload/prettier.vim
@@ -326,8 +326,8 @@ function! s:Get_Prettier_Exec_Args(config) abort
\ get(a:config, 'proseWrap', g:prettier#config#prose_wrap) .
\ ' --html-whitespace-sensitivity ' .
\ get(a:config, 'htmlWhitespaceSensitivity', g:prettier#config#html_whitespace_sensitivity) .
- \ ' --stdin-filepath ' .
- \ simplify(expand('%:p')) .
+ \ ' --stdin-filepath "' .
+ \ simplify(expand('%:p')) . '"' .
\ ' --loglevel error '.
\ ' --stdin '
return l:cmd