nvim: init.vim: Add ALE for linting
Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
This commit is contained in:
parent
c70ec871ec
commit
286558f5af
2 changed files with 16 additions and 0 deletions
|
@ -29,6 +29,8 @@ Plug 'vim-utils/vim-husk'
|
||||||
Plug 'luochen1990/rainbow'
|
Plug 'luochen1990/rainbow'
|
||||||
" Formatting
|
" Formatting
|
||||||
Plug 'sbdchd/neoformat'
|
Plug 'sbdchd/neoformat'
|
||||||
|
" Linting
|
||||||
|
Plug 'dense-analysis/ale'
|
||||||
" Run things async
|
" Run things async
|
||||||
Plug 'hauleth/asyncdo.vim'
|
Plug 'hauleth/asyncdo.vim'
|
||||||
" Quickfix
|
" Quickfix
|
||||||
|
|
|
@ -54,6 +54,20 @@ let g:markify_error_text = 'E'
|
||||||
let g:markify_warning_text = 'W'
|
let g:markify_warning_text = 'W'
|
||||||
let g:markify_info_text = 'I'
|
let g:markify_info_text = 'I'
|
||||||
|
|
||||||
|
" ALE
|
||||||
|
let g:ale_linters_explicit = 1
|
||||||
|
let g:ale_lint_on_enter = 0
|
||||||
|
let g:ale_lint_on_save = 1
|
||||||
|
let g:ale_lint_on_text_changed = 'never'
|
||||||
|
let g:ale_linters = {
|
||||||
|
\ 'haskell': ['hlint'],
|
||||||
|
\ 'clojure': ['clj-kondo', 'joker'],
|
||||||
|
\ 'purescript': ['purty'],
|
||||||
|
\ 'python' : ['autopep8', 'flake8'],
|
||||||
|
\ 'fish' : ['fish'],
|
||||||
|
\ 'bash' : ['shellcheck']
|
||||||
|
\}
|
||||||
|
|
||||||
" Neovim LSP Diagnostics
|
" Neovim LSP Diagnostics
|
||||||
let g:diagnostic_enable_virtual_text = 1
|
let g:diagnostic_enable_virtual_text = 1
|
||||||
let g:diagnostic_show_sign = 1
|
let g:diagnostic_show_sign = 1
|
||||||
|
|
Loading…
Reference in a new issue