mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-02 20:30:05 +08:00
feat(lang#ruby): support solargraph
client
This commit is contained in:
parent
3aed580334
commit
9eebba69d4
@ -127,6 +127,7 @@ endfunction
|
||||
function! s:language_specified_mappings() abort
|
||||
call SpaceVim#mapping#space#langSPC('nmap', ['l', 'r'], 'call SpaceVim#plugins#runner#open()', 'execute current file', 1)
|
||||
if SpaceVim#layers#lsp#check_filetype('ruby')
|
||||
\ || SpaceVim#layers#lsp#check_server('solargraph')
|
||||
nnoremap <silent><buffer> K :call SpaceVim#lsp#show_doc()<CR>
|
||||
|
||||
call SpaceVim#mapping#space#langSPC('nnoremap', ['l', 'd'],
|
||||
@ -151,6 +152,7 @@ endfunction
|
||||
|
||||
function! s:go_to_def() abort
|
||||
if !SpaceVim#layers#lsp#check_filetype('ruby')
|
||||
\ && !SpaceVim#layers#lsp#check_server('solargraph')
|
||||
normal! gd
|
||||
else
|
||||
call SpaceVim#lsp#go_to_def()
|
||||
|
Loading…
Reference in New Issue
Block a user