mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-09 09:00:06 +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
|
function! s:language_specified_mappings() abort
|
||||||
call SpaceVim#mapping#space#langSPC('nmap', ['l', 'r'], 'call SpaceVim#plugins#runner#open()', 'execute current file', 1)
|
call SpaceVim#mapping#space#langSPC('nmap', ['l', 'r'], 'call SpaceVim#plugins#runner#open()', 'execute current file', 1)
|
||||||
if SpaceVim#layers#lsp#check_filetype('ruby')
|
if SpaceVim#layers#lsp#check_filetype('ruby')
|
||||||
|
\ || SpaceVim#layers#lsp#check_server('solargraph')
|
||||||
nnoremap <silent><buffer> K :call SpaceVim#lsp#show_doc()<CR>
|
nnoremap <silent><buffer> K :call SpaceVim#lsp#show_doc()<CR>
|
||||||
|
|
||||||
call SpaceVim#mapping#space#langSPC('nnoremap', ['l', 'd'],
|
call SpaceVim#mapping#space#langSPC('nnoremap', ['l', 'd'],
|
||||||
@ -151,6 +152,7 @@ endfunction
|
|||||||
|
|
||||||
function! s:go_to_def() abort
|
function! s:go_to_def() abort
|
||||||
if !SpaceVim#layers#lsp#check_filetype('ruby')
|
if !SpaceVim#layers#lsp#check_filetype('ruby')
|
||||||
|
\ && !SpaceVim#layers#lsp#check_server('solargraph')
|
||||||
normal! gd
|
normal! gd
|
||||||
else
|
else
|
||||||
call SpaceVim#lsp#go_to_def()
|
call SpaceVim#lsp#go_to_def()
|
||||||
|
Loading…
Reference in New Issue
Block a user