diff options
author | Adam T. Carpenter <atc@53hor.net> | 2023-11-20 18:52:09 -0500 |
---|---|---|
committer | Adam T. Carpenter <atc@53hor.net> | 2023-11-20 18:52:09 -0500 |
commit | 14a891ed00683b551c03d2beebf5f31c6d2e5b5e (patch) | |
tree | 3020c91105eb9bd3069e563e3908b29d876a6a98 /.vimrc | |
parent | 69fa862744473498be89685db35fddb4eff577c3 (diff) | |
download | dotfiles-14a891ed00683b551c03d2beebf5f31c6d2e5b5e.tar.xz dotfiles-14a891ed00683b551c03d2beebf5f31c6d2e5b5e.zip |
vimrc with ale
wpg templates
Diffstat (limited to '.vimrc')
-rw-r--r-- | .vimrc | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -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' } } |