Skip to content

Commit

Permalink
Fixed prettier (forgot the --stdin arg)
Browse files Browse the repository at this point in the history
Also added some logging for the cmd that gets run
  • Loading branch information
sbdchd committed Jan 11, 2017
1 parent 6521581 commit eed4b2f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions autoload/neoformat.vim
Expand Up @@ -67,6 +67,7 @@ function! s:neoformat(bang, user_input, start_line, end_line) abort

call neoformat#utils#log(stdin)

call neoformat#utils#log(cmd.exe)
if cmd.stdin
let stdout = systemlist(cmd.exe, stdin)
else
Expand Down
1 change: 1 addition & 0 deletions autoload/neoformat/formatters/javascript.vim
Expand Up @@ -39,6 +39,7 @@ endfunction
function! neoformat#formatters#javascript#prettier() abort
return {
\ 'exe': 'prettier',
\ 'args': ['--stdin'],
\ 'stdin': 1,
\ }
endfunction

0 comments on commit eed4b2f

Please sign in to comment.