mirror of
https://github.com/mattn/vim-lsp-settings.git
synced 2025-12-12 20:35:54 +01:00
9 lines
282 B
VimL
9 lines
282 B
VimL
function! LspCheckCommand() abort
|
|
let l:command = trim(filter(systemlist('ros version'), 'v:val =~# "^homedir="')[0][8:], '''"') . '/bin/cl-lsp'
|
|
if !filereadable(l:command)
|
|
return ''
|
|
endif
|
|
call lsp_settings#set('cl-lsp', 'cmd', l:command)
|
|
return l:command
|
|
endfunction
|