nvim: init.vim: Add ALE for linting

Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
This commit is contained in:
Sanchayan Maity 2020-06-14 20:26:54 +05:30
parent c70ec871ec
commit 286558f5af
2 changed files with 16 additions and 0 deletions

View file

@ -29,6 +29,8 @@ Plug 'vim-utils/vim-husk'
Plug 'luochen1990/rainbow'
" Formatting
Plug 'sbdchd/neoformat'
" Linting
Plug 'dense-analysis/ale'
" Run things async
Plug 'hauleth/asyncdo.vim'
" Quickfix

View file

@ -54,6 +54,20 @@ let g:markify_error_text = 'E'
let g:markify_warning_text = 'W'
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
let g:diagnostic_enable_virtual_text = 1
let g:diagnostic_show_sign = 1