mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 10:40:03 +08:00
fix(rust): rust lsp check typos fix
This commit is contained in:
parent
344cd372d4
commit
a39c6294bc
@ -110,9 +110,9 @@ endif
|
||||
function! SpaceVim#layers#lang#rust#plugins() abort
|
||||
let plugins = []
|
||||
call add(plugins, [g:_spacevim_root_dir . 'bundle/rust.vim', {'merged' : 0}])
|
||||
if !spacevim#layers#lsp#check_filetype('rust')
|
||||
\ && !spacevim#layers#lsp#check_server('rls')
|
||||
\ && !spacevim#layers#lsp#check_server('rust_analyzer')
|
||||
if !SpaceVim#layers#lsp#check_filetype('rust')
|
||||
\ && !SpaceVim#layers#lsp#check_server('rls')
|
||||
\ && !SpaceVim#layers#lsp#check_server('rust_analyzer')
|
||||
call add(plugins, ['racer-rust/vim-racer', {'merged' : 0}])
|
||||
endif
|
||||
return plugins
|
||||
@ -202,9 +202,9 @@ function! s:language_specified_mappings() abort
|
||||
\ . string(function('s:execCMD')) . ', ["cargo fmt"])',
|
||||
\ 'format project files', 1)
|
||||
|
||||
if spacevim#layers#lsp#check_filetype('rust')
|
||||
\ || spacevim#layers#lsp#check_server('rls')
|
||||
\ || spacevim#layers#lsp#check_server('rust_analyzer')
|
||||
if SpaceVim#layers#lsp#check_filetype('rust')
|
||||
\ || SpaceVim#layers#lsp#check_server('rls')
|
||||
\ || SpaceVim#layers#lsp#check_server('rust_analyzer')
|
||||
nnoremap <silent><buffer> K :call SpaceVim#lsp#show_doc()<CR>
|
||||
nnoremap <silent><buffer> gD :<C-u>call SpaceVim#lsp#go_to_typedef()<Cr>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user