summaryrefslogtreecommitdiff
path: root/.vimrc
diff options
context:
space:
mode:
Diffstat (limited to '.vimrc')
-rw-r--r--.vimrc8
1 files changed, 6 insertions, 2 deletions
diff --git a/.vimrc b/.vimrc
index f9e4baf..cb375fd 100644
--- a/.vimrc
+++ b/.vimrc
@@ -13,7 +13,7 @@ set shiftwidth=4 " 4-space shiftwidth
set backspace=indent,eol,start " backspace over everything in insert
set directory=$HOME/.vim/swapfiles// " common swap directory
set fillchars+=vert:\
-syntax on " switch syntax highlighting on
+syntax enable " switch syntax highlighting on, used to be syntax on
" Matching and key mappings
":match ErrorMsg '\%>80v.\+' " right-hand drift warning
@@ -51,10 +51,14 @@ endif
call plug#begin('~/.vim/plugged')
Plug 'neoclide/coc.nvim', {'do': 'yarn install --frozen-lockfile'}
+Plug 'rust-lang/rust.vim'
call plug#end()
+" rust.vim
+let g:rustfmt_autosave = 1
+
" COC.VIM
-let g:coc_global_extensions = ['coc-rust-analyzer', 'coc-vetur', 'coc-prettier']
+"let g:coc_global_extensions = ['coc-rust-analyzer', 'coc-prettier']
inoremap <silent><expr> <TAB>
\ pumvisible() ? "\<C-n>" :