Skip to content

Commit

Permalink
Fix denops check
Browse files Browse the repository at this point in the history
  • Loading branch information
Shougo committed Jan 31, 2024
1 parent aed404f commit 1be3ddc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion autoload/ddu/denops.vim
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,9 @@ function s:init() abort
" NOTE: ddu.vim must be registered manually.

" NOTE: denops load may be started
if 'g:loaded_denops'->exists() && denops#server#status() ==# 'running'
if 'g:loaded_denops'->exists() &&
\ (denops#server#status() ==# 'preparing' ||
\ denops#server#status() ==# 'running')
silent! call s:register()
else
autocmd ddu User DenopsReady silent! call s:register()
Expand Down

0 comments on commit 1be3ddc

Please sign in to comment.