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

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

No files matched your search

+5
View File
@@ -10,6 +10,11 @@ endif
" Check if diagnostics for a particular linter should be ignored.
function! s:ShouldIgnore(buffer, linter_name) abort
" Ignore all diagnostics if LSP integration is disabled.
if ale#Var(a:buffer, 'disable_lsp')
return 1
endif
let l:config = ale#Var(a:buffer, 'linters_ignore')
" Don't load code for ignoring diagnostics if there's nothing to ignore.