diff options
| author | Mitermayer Reis <mitermayer.reis@gmail.com> | 2017-10-19 21:32:08 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-10-19 21:32:08 -0700 |
| commit | 8ade03d20bfdb72b12e96950e65c119a0c470543 (patch) | |
| tree | 6aad4f0c9c48a501a390f3213adaa3c3eb7cee0b /autoload/prettier.vim | |
| parent | 9b6ec4d3e102cd7442cb66b135373e9f2e40d65c (diff) | |
| parent | 364ed8bd55cda6b060c5504a701a536ac202bd4f (diff) | |
| download | vim-prettier-8ade03d20bfdb72b12e96950e65c119a0c470543.tar.xz | |
Merge pull request #72 from prettier/issue-71/incorrect-resolving-of-prettier-config
Fixing bug where config was not being correctly loaded based on file
Diffstat (limited to 'autoload/prettier.vim')
| -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 |
