diff options
| author | mitermayer <mitermayer.reis@gmail.com> | 2017-10-19 21:30:25 -0700 |
|---|---|---|
| committer | mitermayer <mitermayer.reis@gmail.com> | 2017-10-19 21:30:25 -0700 |
| commit | 364ed8bd55cda6b060c5504a701a536ac202bd4f (patch) | |
| tree | 6aad4f0c9c48a501a390f3213adaa3c3eb7cee0b | |
| parent | ac82a93cbe9a964e10b21b20c9705c9f131664f0 (diff) | |
| download | vim-prettier-364ed8bd55cda6b060c5504a701a536ac202bd4f.tar.xz | |
Fixing bug where config was not being correctly loaded based on file
edited
| -rw-r--r-- | autoload/prettier.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/autoload/prettier.vim b/autoload/prettier.vim index 5412571..14c1308 100644 --- a/autoload/prettier.vim +++ b/autoload/prettier.vim @@ -256,7 +256,7 @@ function! s:Get_Prettier_Exec_Args(config) abort \ ' --config-precedence ' . \ get(a:config, 'configPrecedence', g:prettier#config#config_precedence) . \ ' --stdin-filepath ' . - \ simplify(expand("%:t")) . + \ simplify(expand("%:p")) . \ ' --stdin ' return l:cmd endfunction |
