From 1e2a63bbda85ac6fc713f3651de603aedffc012b Mon Sep 17 00:00:00 2001 From: mitermayer Date: Mon, 15 Jan 2018 09:16:37 -0800 Subject: Disabling nvim async by default under feature flag - The new nvim async had some bugs reported, while we are still investigating fixes for it we will then disable it by default, users should be able to still use it by enabling the flag on their .vimrc in the meantime `g:prettier#nvim_unstable_async` --- autoload/prettier.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'autoload/prettier.vim') diff --git a/autoload/prettier.vim b/autoload/prettier.vim index 680d661..a7c167e 100644 --- a/autoload/prettier.vim +++ b/autoload/prettier.vim @@ -55,7 +55,7 @@ function! prettier#Prettier(...) abort if l:async && v:version >= 800 && exists('*job_start') call s:Prettier_Exec_Async(l:cmd, l:startSelection, l:endSelection) - elseif l:async && has('nvim') + elseif l:async && has('nvim') && g:prettier#nvim_unstable_async call s:Prettier_Exec_Async_Nvim(l:cmd, l:startSelection, l:endSelection) else call s:Prettier_Exec_Sync(l:cmd, l:startSelection, l:endSelection) -- cgit v1.3