summaryrefslogtreecommitdiff
path: root/.vimrc
diff options
context:
space:
mode:
Diffstat (limited to '.vimrc')
-rw-r--r--.vimrc10
1 files changed, 8 insertions, 2 deletions
diff --git a/.vimrc b/.vimrc
index bb12ac0..b84dcbe 100644
--- a/.vimrc
+++ b/.vimrc
@@ -20,7 +20,7 @@ if has("autocmd")
autocmd InsertEnter * :set norelativenumber
autocmd InsertLeave * :set relativenumber
- "at startup, jump to last cursor position if valid
+ " at startup, jump to last cursor position if valid
augroup vimStartup
au!
autocmd BufReadPost *
@@ -56,7 +56,13 @@ set ttimeoutlen=100 " wait up to 100ms after esc for special key
set directory=~/.vim/swapfiles//,/tmp// " common swap directory
" no bars for vertical split
-set fillchars+=vert:\
+set fillchars+=vert:\
" switch syntax highlighting on
syntax enable
+
+" ale
+let g:ale_fix_on_save = 1
+let g:ale_linters = { 'rust': [ 'analyzer' ] }
+let g:ale_fixers = { 'rust': [ 'rustfmt' ], '*': [ 'trim_whitespace', 'remove_trailing_lines' ] }
+let g:ale_rust_analyzer_config = { 'check': { 'command': 'clippy' } }