diff options
Diffstat (limited to '.vimrc')
-rw-r--r-- | .vimrc | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -11,6 +11,8 @@ call vundle#begin() " let Vundle manage Vundle, required Plugin 'VundleVim/Vundle.vim' +Plugin 'autozimu/LanguageClient-neovim' + Plugin 'tpope/vim-surround' Plugin 'tpope/vim-repeat' Plugin 'tpope/vim-speeddating' @@ -83,3 +85,14 @@ nnoremap <silent> ge :call ToEnd()<cr> nnoremap <silent> gb :call ToBegin()<cr> map <C-n> :NERDTreeToggle<CR> + +" Required for operations modifying multiple buffers like rename. +set hidden + +let g:LanguageClient_serverCommands = { + \ 'rust': ['rustup', 'run', 'stable', '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> |