aboutsummaryrefslogtreecommitdiff
path: root/autoload
diff options
context:
space:
mode:
authormitermayer <mitermayer.reis@gmail.com>2019-08-27 15:44:25 +0000
committermitermayer <mitermayer.reis@gmail.com>2019-08-27 15:44:25 +0000
commit34f7fb1bce61ec220c49d5e4ad7c3d8f3874f02b (patch)
treeddc6d135577f1134cb771b1cf81e98fa0a71951b /autoload
parent6278a4abc8748ead85ebe80a6386a84730806496 (diff)
downloadvim-prettier-34f7fb1bce61ec220c49d5e4ad7c3d8f3874f02b.tar.xz
Fixing bug where formatting filepath could not be found
- parsers are no longer parsed so we required to make sure to give prettier the filepath
Diffstat (limited to 'autoload')
-rw-r--r--autoload/prettier/resolver/config.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/autoload/prettier/resolver/config.vim b/autoload/prettier/resolver/config.vim
index 81d558d..029bec4 100644
--- a/autoload/prettier/resolver/config.vim
+++ b/autoload/prettier/resolver/config.vim
@@ -27,7 +27,7 @@ function! prettier#resolver#config#resolve(config, hasSelection, start, end) abo
\ 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