From b4e2eafacbc7e08afba4ddb166c47335753e8f27 Mon Sep 17 00:00:00 2001 From: chemzqm Date: Wed, 9 May 2018 15:44:38 +0800 Subject: use buffered mode for neovim job --- autoload/prettier/job/async/neovim.vim | 2 ++ 1 file changed, 2 insertions(+) (limited to 'autoload/prettier') 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)}, -- cgit v1.3