diff options
| author | mitermayer <mitermayer.reis@gmail.com> | 2017-10-03 22:49:04 -0700 |
|---|---|---|
| committer | mitermayer <mitermayer.reis@gmail.com> | 2017-10-03 22:49:04 -0700 |
| commit | bea51845924b743e2aa6e3a16e0729e67041fa9c (patch) | |
| tree | 786f8daee955db01b423b1ade55aeafb5d0373c1 /autoload | |
| parent | 3cde181b6b5481496b21bd35b832bdee25df267d (diff) | |
| download | vim-prettier-bea51845924b743e2aa6e3a16e0729e67041fa9c.tar.xz | |
bug: Fixing config overwrite value for non js by levaraging --stdin-filepath from
prettier
Diffstat (limited to 'autoload')
| -rw-r--r-- | autoload/prettier.vim | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/autoload/prettier.vim b/autoload/prettier.vim index d2b0a7f..d3caa50 100644 --- a/autoload/prettier.vim +++ b/autoload/prettier.vim @@ -213,6 +213,8 @@ function! s:Get_Prettier_Exec_Args(config) abort \ get(a:config, 'parser', g:prettier#config#parser) . \ ' --config-precedence ' . \ get(a:config, 'configPrecedence', g:prettier#config#config_precedence) . + \ ' --stdin-filepath ' . + \ simplify(expand("%:t")) . \ ' --stdin ' return l:cmd endfunction |
