From f891de69dcb1e189d129d46f527ad58ac86ded7f Mon Sep 17 00:00:00 2001 From: Eduard Tolosa Date: Sat, 1 Feb 2020 18:26:12 -0500 Subject: [PATCH] Update --- user-config/nvim/init.vim | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/user-config/nvim/init.vim b/user-config/nvim/init.vim index 1724d33..f1b9872 100644 --- a/user-config/nvim/init.vim +++ b/user-config/nvim/init.vim @@ -34,14 +34,16 @@ Plug 'jiangmiao/auto-pairs' " Completion for Rust Plug 'sebastianmarkow/deoplete-rust' -" List ends here. Plugins become visible to Vim after this call. +"List ends here. Plugins become visible to Vim after this call. call plug#end() " Use mustache let g:mustache_abbreviations = 1 -" Use deoplete. +" Use deoplete and set deoplete options let g:deoplete#enable_at_startup = 1 +call deoplete#custom#option('check_stderr', v:false) + " Rust config let g:rustfmt_autosave = 1 @@ -118,4 +120,7 @@ set list " Show problematic characters. " Also highlight all tabs and trailing whitespace characters. highlight ExtraWhitespace ctermbg=darkgreen guibg=darkgreen -match ExtraWhitespace /\s\+$\|\t/ \ No newline at end of file +match ExtraWhitespace /\s\+$\|\t/ + +" Sample command W to save a file in neovim without root permission with sudo +" command W :execute ':silent w !sudo tee % > /dev/null' | :edit!