vimrc/lsp.vim

11 lines
395 B
VimL
Raw Normal View History

2018-01-04 17:58:23 +00:00
set hidden
let g:LanguageClient_serverCommands = {
\ 'rust': ['rustup', 'run', 'nightly', 'rls'],
\ }
nnoremap <silent> K :call LanguageClient_textDocument_hover()<CR>
nnoremap <silent> gd :call LanguageClient_textDocument_definition()<CR>
nnoremap <silent> <F2> :call LanguageClient_textDocument_rename()<CR>
nnoremap <silent> S :call LanguageClient_textDocument_documentSymbol()<CR>