diff options
| author | mitermayer <mitermayer.reis@gmail.com> | 2018-05-04 22:13:23 -0700 |
|---|---|---|
| committer | mitermayer <mitermayer.reis@gmail.com> | 2018-05-04 22:13:23 -0700 |
| commit | 2ee343b23b5fa207d7fe75acc57008194bc8c9b4 (patch) | |
| tree | 2eecc8586829573b915f9f5ffecc513a810ed815 /autoload | |
| parent | 2c16dd83051380a9d651621062b7775be4ad0e1e (diff) | |
| download | vim-prettier-2ee343b23b5fa207d7fe75acc57008194bc8c9b4.tar.xz | |
Adding support for neovim
Diffstat (limited to 'autoload')
| -rw-r--r-- | autoload/prettier/job/async/neovim.vim | 2 | ||||
| -rw-r--r-- | autoload/prettier/job/runner.vim | 6 |
2 files changed, 1 insertions, 7 deletions
diff --git a/autoload/prettier/job/async/neovim.vim b/autoload/prettier/job/async/neovim.vim index c324f17..1d3531d 100644 --- a/autoload/prettier/job/async/neovim.vim +++ b/autoload/prettier/job/async/neovim.vim @@ -37,8 +37,6 @@ endfunction " 2. extract common functionality either above to the runner or to some other module " " to test this it rellies on using nvim and having the flag -" g:prettier#nvim_unstable_async=1 - enabled -" " " note that somehow we exectuing both async and sync on nvim when using the autoformat function! s:onExit(status, info, out, err) abort diff --git a/autoload/prettier/job/runner.vim b/autoload/prettier/job/runner.vim index 92a27b9..60cb8a5 100644 --- a/autoload/prettier/job/runner.vim +++ b/autoload/prettier/job/runner.vim @@ -1,11 +1,7 @@ " TODO " move the bellow vim checks to UTILS -" -" TODO -" we are currently feature protecting async on NVIM with g:prettier#nvim_unstable_async -" we should remove this once its fully supported let s:isLegacyVim = v:version < 800 -let s:isNeoVim = has('nvim') && g:prettier#nvim_unstable_async +let s:isNeoVim = has('nvim') let s:isAsyncVim = !s:isLegacyVim && exists('*job_start') function! prettier#job#runner#run(cmd, startSelection, endSelection, async) abort |
