1
0
mirror of https://github.com/jdhao/nvim-config.git synced 2025-06-08 14:14:33 +02:00

Use ALE for linting instead of Neomake

This commit is contained in:
jdhao 2020-01-07 17:43:06 +08:00 committed by GitHub
parent 3b161bd281
commit e729604b9e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -191,10 +191,10 @@ endif
"{{ Linting, formating "{{ Linting, formating
" Syntax check and make " Syntax check and make
Plug 'neomake/neomake' " Plug 'neomake/neomake'
" Another linting plugin " Another linting plugin
" Plug 'dense-analysis/ale' Plug 'dense-analysis/ale'
" Auto format tools " Auto format tools
Plug 'sbdchd/neoformat', { 'on': 'Neoformat' } 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 " Do not highlight for all occurances of variable under cursor
let g:semshi#mark_selected_nodes=0 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 let g:semshi#error_sign=v:false
"}} "}}
@ -600,22 +600,19 @@ augroup END
"}} "}}
"{{ Linting and formating "{{ Linting and formating
"""""""""""""""""""""""""""""" neomake settings """"""""""""""""""""""" """""""""""""""""""""""""""""" ale settings """""""""""""""""""""""
" When to activate neomake " linters for different filetypes
call neomake#configure#automake('nrw', 50) let g:ale_linters = {
\ 'python': ['pylint', 'flake8'],
\ 'vim': ['vint']
\}
" Change warning signs and color, see https://goo.gl/eHcjSq. " Only run linters in the g:ale_linters dictionary
let g:neomake_warning_sign={'text': '!', 'texthl': 'NeomakeWarningSign'} let g:ale_linters_explicit = 1
let g:neomake_error_sign={'text': '✗'}
" Linters enabled for Python source file linting " Linter signs
let g:neomake_python_enabled_makers = ['pylint'] let g:ale_sign_error = '❌'
let g:ale_sign_warning = '!'
" 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 = []
"""""""""""""""""""""""""""""" neoformat settings """"""""""""""""""""""" """""""""""""""""""""""""""""" neoformat settings """""""""""""""""""""""
let g:neoformat_enabled_python = ['black', 'yapf'] let g:neoformat_enabled_python = ['black', 'yapf']