mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-09 15:50:06 +08:00
Fix vim error
This commit is contained in:
parent
c8dfcc4745
commit
4fc14287f9
@ -13,11 +13,13 @@ function! SpaceVim#server#connect()
|
|||||||
if empty($SPACEVIM_SERVER_ADDRESS)
|
if empty($SPACEVIM_SERVER_ADDRESS)
|
||||||
let $SPACEVIM_SERVER_ADDRESS = fnamemodify('~/.cache/SpaceVim/server', ':p')
|
let $SPACEVIM_SERVER_ADDRESS = fnamemodify('~/.cache/SpaceVim/server', ':p')
|
||||||
endif
|
endif
|
||||||
|
if has('nvim')
|
||||||
try
|
try
|
||||||
call serverstart($SPACEVIM_SERVER_ADDRESS)
|
call serverstart($SPACEVIM_SERVER_ADDRESS)
|
||||||
call SpaceVim#logger#info('SpaceVim server startup at:' . $SPACEVIM_SERVER_ADDRESS)
|
call SpaceVim#logger#info('SpaceVim server startup at:' . $SPACEVIM_SERVER_ADDRESS)
|
||||||
catch /Failed to start server: address already in use/
|
catch /Failed to start server: address already in use/
|
||||||
endtry
|
endtry
|
||||||
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user