From f3b30e4c373a69e531dbda0a22e530356a20b5bc Mon Sep 17 00:00:00 2001 From: Julian Teu Date: Mon, 28 May 2018 17:58:55 +0200 Subject: Added rust support --- .vimrc | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.vimrc b/.vimrc index 349160a..84fdb1c 100644 --- a/.vimrc +++ b/.vimrc @@ -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 ge :call ToEnd() nnoremap gb :call ToBegin() map :NERDTreeToggle + +" Required for operations modifying multiple buffers like rename. +set hidden + +let g:LanguageClient_serverCommands = { + \ 'rust': ['rustup', 'run', 'stable', 'rls'], + \ } + +nnoremap K :call LanguageClient#textDocument_hover() +nnoremap gd :call LanguageClient#textDocument_definition() +nnoremap :call LanguageClient#textDocument_rename() -- cgit v1.2.3