From 3d2dedb09bba703635ac9a3fa97f2117157c6add Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Wed, 12 May 2021 22:09:39 +0200 Subject: Update .vimrc --- vim/.vimrc | 29 ++++++++++++++++++++++++++--- 1 file changed, 26 insertions(+), 3 deletions(-) diff --git a/vim/.vimrc b/vim/.vimrc index a58230d..7f08248 100755 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -20,6 +20,7 @@ Plugin 'ap/vim-css-color' Plugin 'Yggdroot/indentLine' Plugin 'ryanoasis/vim-devicons' +Plugin 'edkolev/tmuxline.vim' call vundle#end() " required @@ -66,9 +67,22 @@ set splitright " split on right side set lazyredraw set ttyfast +" rust +let g:rustfmt_autosave = 1 +let g:rustfmt_emit_files = 1 +let g:rustfmt_fail_silently = 0 +let g:rust_clip_command = 'xclip -selection clipboard' + let g:fzf_preview_window = 'right:70%' let g:ale_fix_on_save = 1 +let g:ale_sign_error = '🛑' +let g:ale_sign_warning = '⚠️' +let g:ale_sign_info = '💭' +let g:ale_echo_msg_error_str = 'E' +let g:ale_echo_msg_warning_str = 'W' +let g:ale_echo_msg_format = '[%severity%] [%linter%] %s' + let g:airline_theme='onedark' let g:airline_powerline_fonts = 1 @@ -101,8 +115,8 @@ nnoremap j gj nnoremap k gk nnoremap tn :tabnew -nnoremap ve :Vexplore -nnoremap rt :RainbowToggle +nnoremap :ve :Vexplore +nnoremap :rt :RainbowToggle " buffers nnoremap ]b :bnext @@ -132,6 +146,15 @@ nnoremap :gd :Git diff nnoremap :pa :set paste nnoremap :npa :set nopaste -nmap (coc-definition) nmap :cr :!command cargo r nmap :EditorConfigReload + +" Use `[g` and `]g` to navigate diagnostics +nmap [g (coc-diagnostic-prev) +nmap ]g (coc-diagnostic-next) + +" GoTo code navigation. +nmap gd (coc-definition) +nmap gy (coc-type-definition) +nmap gi (coc-implementation) +nmap gr (coc-references) -- cgit v1.2.3-18-g5258