1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 22:40:04 +08:00

Fix(lsp): multiple language server registration bug (#3338)

This commit is contained in:
JHZheng 2020-02-06 18:18:31 +08:00 committed by GitHub
parent bf427c94e8
commit 240a31c591
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -114,7 +114,7 @@ else
" use vim-lsp
function! SpaceVim#lsp#reg_server(ft, cmds) abort
exe 'au User lsp_setup call lsp#register_server({'
\ . "'name': 'LSP',"
\ . "'name': '" . a:ft . "-lsp',"
\ . "'cmd': {server_info -> " . string(a:cmds) . '},'
\ . "'whitelist': ['" . a:ft . "' ],"
\ . '})'