aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjdhao <jdhao@hotmail.com>2020-01-07 17:43:06 +0800
committerGitHub <noreply@github.com>2020-01-07 17:43:06 +0800
commite729604b9e5f38da03429c178a631b7b3694d601 (patch)
treec67e5b153b578e773aa9c2170b6bd244db783c80
parent3b161bd28157e35c2569114a91eacfe803728d41 (diff)
Use ALE for linting instead of Neomake
-rw-r--r--plugins.vim35
1 files changed, 16 insertions, 19 deletions
diff --git a/plugins.vim b/plugins.vim
index 985c968..74a6c3e 100644
--- a/plugins.vim
+++ b/plugins.vim
@@ -191,10 +191,10 @@ endif
"{{ Linting, formating
" Syntax check and make
-Plug 'neomake/neomake'
+" Plug 'neomake/neomake'
" Another linting plugin
-" Plug 'dense-analysis/ale'
+Plug 'dense-analysis/ale'
" Auto format tools
Plug 'sbdchd/neoformat', { 'on': 'Neoformat' }
@@ -419,7 +419,7 @@ let g:jedi#show_call_signatures = '0'
" Do not highlight for all occurances of variable under cursor
let g:semshi#mark_selected_nodes=0
-" Do not show error sign since neomake is specicialized for that
+" Do not show error sign since linting plugin is specicialized for that
let g:semshi#error_sign=v:false
"}}
@@ -600,22 +600,19 @@ augroup END
"}}
"{{ Linting and formating
-"""""""""""""""""""""""""""""" neomake settings """""""""""""""""""""""
-" When to activate neomake
-call neomake#configure#automake('nrw', 50)
-
-" Change warning signs and color, see https://goo.gl/eHcjSq.
-let g:neomake_warning_sign={'text': '!', 'texthl': 'NeomakeWarningSign'}
-let g:neomake_error_sign={'text': '✗'}
-
-" Linters enabled for Python source file linting
-let g:neomake_python_enabled_makers = ['pylint']
-
-" Whether to open quickfix or location list automatically
-let g:neomake_open_list = 0
-
-" Which linter to use for TeX source files
-let g:neomake_tex_enabled_makers = []
+"""""""""""""""""""""""""""""" ale settings """""""""""""""""""""""
+" linters for different filetypes
+let g:ale_linters = {
+ \ 'python': ['pylint', 'flake8'],
+ \ 'vim': ['vint']
+\}
+
+" Only run linters in the g:ale_linters dictionary
+let g:ale_linters_explicit = 1
+
+" Linter signs
+let g:ale_sign_error = '❌'
+let g:ale_sign_warning = '!'
"""""""""""""""""""""""""""""" neoformat settings """""""""""""""""""""""
let g:neoformat_enabled_python = ['black', 'yapf']