diff options
| author | chemzqm <chemzqm@gmail.com> | 2018-05-09 15:44:38 +0800 |
|---|---|---|
| committer | mitermayer <mitermayer.reis@gmail.com> | 2019-08-25 21:11:49 -0700 |
| commit | e2121c52c0434acdc8f0bea43690ae3b7a0e36dc (patch) | |
| tree | 5ec9c9682e0b490597332e7dda76f0a99ab01bf5 | |
| parent | 52043c553e9202762012041c123d2688ec7e9b78 (diff) | |
| download | vim-prettier-e2121c52c0434acdc8f0bea43690ae3b7a0e36dc.tar.xz | |
use buffered mode for neovim job
| -rw-r--r-- | autoload/prettier/job/async/neovim.vim | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/autoload/prettier/job/async/neovim.vim b/autoload/prettier/job/async/neovim.vim index 1d3531d..a554f70 100644 --- a/autoload/prettier/job/async/neovim.vim +++ b/autoload/prettier/job/async/neovim.vim @@ -17,6 +17,8 @@ function! prettier#job#async#neovim#run(cmd, startSelection, endSelection) abort let l:err = [] let l:job = jobstart([&shell, &shellcmdflag, a:cmd], { + \ 'stdout_buffered': 1, + \ 'stderr_buffered': 1, \ 'on_stdout': {job_id, data, event -> extend(l:out, data)}, \ 'on_stderr': {job_id, data, event -> extend(l:err, data)}, \ 'on_exit': {job_id, status, event -> s:onExit(status, l:dict, l:out, l:err)}, |
