update nvim config

main
Andrew Coleman 2021-04-14 16:28:06 -04:00
parent 25f3472774
commit 7a39015c17
1 changed files with 3 additions and 2 deletions

View File

@ -1,6 +1,6 @@
call plug#begin('~/.config/nvim/autoload/plugged') call plug#begin('~/.config/nvim/autoload/plugged')
Plug 'junegunn/vim-easy-align' Plug 'junegunn/vim-easy-align'
Plug 'w0rp/ale' Plug 'dense-analysis/ale'
Plug 'tpope/vim-rails' Plug 'tpope/vim-rails'
Plug 'vim-ruby/vim-ruby' Plug 'vim-ruby/vim-ruby'
Plug 'hashivim/vim-terraform' Plug 'hashivim/vim-terraform'
@ -88,8 +88,9 @@ autocmd InsertEnter * match ExtraWhitespace /\s\+\%#\@<!$/
autocmd InsertLeave * match ExtraWhitespace /\s\+$/ autocmd InsertLeave * match ExtraWhitespace /\s\+$/
autocmd BufWinLeave * call clearmatches() autocmd BufWinLeave * call clearmatches()
let g:ale_linters = {'rust': ['analyzer']} let g:ale_linters = {'rust': ['analyzer'], 'sh': ['shellcheck','shfmt','remove_trailing_lines','trim_whitespace']}
let g:ale_cursor_detail = 0 let g:ale_cursor_detail = 0
let g:ale_fix_on_save = 1
" Start interactive EasyAlign in visual mode (e.g. vipga) " Start interactive EasyAlign in visual mode (e.g. vipga)
xmap ga <Plug>(EasyAlign) xmap ga <Plug>(EasyAlign)