Skip to content

Commit

Permalink
fix: Discover plugins also in shared server
Browse files Browse the repository at this point in the history
  • Loading branch information
4513ECHO committed Jan 2, 2024
1 parent 111f4cf commit edd7695
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 edd7695

Please sign in to comment.