aboutsummaryrefslogtreecommitdiff
path: root/autoload/prettier.vim
diff options
context:
space:
mode:
authormitermayer <mitermayer.reis@gmail.com>2018-01-15 09:16:37 -0800
committermitermayer <mitermayer.reis@gmail.com>2018-01-15 09:18:20 -0800
commit1e2a63bbda85ac6fc713f3651de603aedffc012b (patch)
tree358e5800e5e9c3bd24768d2d982aad99402ff3c3 /autoload/prettier.vim
parent9e4fb5a9c9eafff143f32a655218052127b5ccc8 (diff)
downloadvim-prettier-1e2a63bbda85ac6fc713f3651de603aedffc012b.tar.xz
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`
Diffstat (limited to 'autoload/prettier.vim')
-rw-r--r--autoload/prettier.vim2
1 files changed, 1 insertions, 1 deletions
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)