#2403 - Make ale_disable_lsp apply consistently, and document it better

This commit is contained in:
w0rp
2019-05-10 13:42:41 +01:00
parent f444abdfe6
commit 79e42fed14
6 changed files with 116 additions and 2 deletions

View File

@@ -97,7 +97,7 @@ function! s:Lint(buffer, should_lint_file, timer_id) abort
" Apply ignore lists for linters only if needed.
let l:ignore_config = ale#Var(a:buffer, 'linters_ignore')
let l:disable_lsp = ale#Var(a:buffer, 'disable_lsp')
let l:linters = !empty(l:ignore_config)
let l:linters = !empty(l:ignore_config) || l:disable_lsp
\ ? ale#engine#ignore#Exclude(l:filetype, l:linters, l:ignore_config, l:disable_lsp)
\ : l:linters