mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-03 11:50:05 +08:00
Fix lsp support
This commit is contained in:
parent
a9c7ebce71
commit
da721afcc8
@ -27,11 +27,11 @@ if has('nvim')
|
||||
else
|
||||
" use vim-lsp
|
||||
function! SpaceVim#lsp#reg_server(ft, cmds) abort
|
||||
au User lsp_setup call lsp#register_server({
|
||||
\ 'name': 'LSP',
|
||||
\ 'cmd': {server_info -> a:cmds},
|
||||
\ 'whitelist': [ a:ft ],
|
||||
\ })
|
||||
exe "au User lsp_setup call lsp#register_server({"
|
||||
\ . "'name': 'LSP',"
|
||||
\ . "'cmd': {server_info -> " . string(a:cmds) . "},"
|
||||
\ . "'whitelist': ['" . a:ft . "' ],"
|
||||
\ . "})"
|
||||
endfunction
|
||||
|
||||
function! SpaceVim#lsp#show_doc() abort
|
||||
|
Loading…
Reference in New Issue
Block a user