From 717a18d58eee10e28fc02547d37b5c2d4709f2a1 Mon Sep 17 00:00:00 2001 From: Dennis Date: Wed, 13 Jun 2018 10:10:52 +0200 Subject: [PATCH] Added Rust debugging configuration --- init.vim | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/init.vim b/init.vim index aceb596..da04585 100644 --- a/init.vim +++ b/init.vim @@ -81,6 +81,18 @@ endfunction nnoremap ; :call ToggleHiddenAll() +" Rust debugging +let g:ycm_rust_src_path = '/home/dennis/code/rust/src' +set statusline+=%#warningmsg# +set statusline+=%{SyntasticStatuslineFlag()} +set statusline+=%* + +let g:syntastic_always_populate_loc_list = 1 +let g:syntastic_auto_loc_list = 1 +let g:syntastic_check_on_open = 1 +let g:syntastic_check_on_wq = 0 +let g:syntastic_rust_checkers = ['cargo'] + call plug#begin() Plug 'SirVer/ultisnips' Plug 'honza/vim-snippets' @@ -94,7 +106,7 @@ Plug 'bling/vim-bufferline' Plug 'scrooloose/nerdtree', {'on': 'NERDTreeToggle'} Plug 'simnalamburt/vim-mundo', {'on': 'MundoToggle'} Plug 'wvffle/vimterm' -Plug 'Valloric/YouCompleteMe', { 'do': './install.py --clang-completer' } +Plug 'Valloric/YouCompleteMe', { 'do': './install.py --clang-completer --rust-completer' } Plug 'rdnetto/YCM-generator', { 'branch': 'stable'} Plug 'chrisbra/Recover.vim' @@ -104,6 +116,10 @@ Plug 'tpope/vim-fugitive' " python Plug 'bfredl/nvim-ipy' +" rust +Plug 'rust-lang/rust.vim' +Plug 'vim-syntastic/syntastic' + " debugging Plug 'sakhnik/nvim-gdb' call plug#end()