mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-03 07:40:05 +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)
|
||||
let $SPACEVIM_SERVER_ADDRESS = fnamemodify('~/.cache/SpaceVim/server', ':p')
|
||||
endif
|
||||
if has('nvim')
|
||||
try
|
||||
call serverstart($SPACEVIM_SERVER_ADDRESS)
|
||||
call SpaceVim#logger#info('SpaceVim server startup at:' . $SPACEVIM_SERVER_ADDRESS)
|
||||
catch /Failed to start server: address already in use/
|
||||
endtry
|
||||
endif
|
||||
endfunction
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user