diff options
-rw-r--r-- | .vimrc | 17 | ||||
-rw-r--r-- | .zshrc | 7 |
2 files changed, 17 insertions, 7 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' @@ -32,6 +34,8 @@ Plugin 'Shougo/deoplete.nvim' Plugin 'agude/vim-eldar' +Plugin 'scrooloose/nerdtree' + call vundle#end() " required filetype plugin indent on " required @@ -79,3 +83,16 @@ endfunction 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> @@ -131,13 +131,6 @@ echo "Done" clear #Setup ssh agent -if [[ $(ps -aux | grep ssh-agent | grep -v "grep" | wc -l) == "0" ]]; then - echo "ssh-agent not found" - ssh-agent > ~/.ssh-agent-thing -fi -if [[ "$SSH_AGENT_PID" == "" ]]; then - eval "$(<~/.ssh-agent-thing)" -fi # Sæt sudo editor export SUDO_EDITOR=nvim |