Skip to content

Commit

Permalink
Merge pull request #303 from 4513ECHO/fix/discover_in_shared
Browse files Browse the repository at this point in the history
fix: Discover plugins also in shared server
  • Loading branch information
Shougo authored Jan 2, 2024
2 parents 111f4cf + edd7695 commit 5071427
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugin/denops.vim
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,13 @@ augroup END
function! s:init() abort
if !empty(get(g:, 'denops_server_addr'))
if denops#server#connect()
call denops#server#wait_async({ -> denops#plugin#discover() })
return
endif
" Fallback to a local denops server
endif
call denops#server#start()
call denops#server#wait_async({ -> denops#plugin#discover()})
call denops#server#wait_async({ -> denops#plugin#discover() })
endfunction

if has('vim_starting')
Expand Down

0 comments on commit 5071427

Please sign in to comment.