diff options
author | w0rp <devw0rp@gmail.com> | 2023-09-14 00:38:12 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2023-09-14 00:40:56 +0100 |
commit | be69af270547b0d1dd5fe947efb3f61455f709ed (patch) | |
tree | 3d72ab429ed3d6025fb88accbd2be753fb78f26a /autoload/ale/linter.vim | |
parent | 9092af9ad6a5c93a759be571323ea1d0cafa8d6e (diff) | |
download | ale-be69af270547b0d1dd5fe947efb3f61455f709ed.zip |
#4607 No conflicts with nvim-lspconfig by default
Default `g:ale_disable_lsp` to a new mode `'auto'` by default. With this
setting applied, ALE will now check for the presence of nvim-lspconfig
and automatically turn off particular LSP linters if already configured
via nvim-lspconfig.
For users that do not use `nvim-lspconfig`, everything should work as
before.
Diffstat (limited to 'autoload/ale/linter.vim')
-rw-r--r-- | autoload/ale/linter.vim | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/autoload/ale/linter.vim b/autoload/ale/linter.vim index 73c47109..20104fbc 100644 --- a/autoload/ale/linter.vim +++ b/autoload/ale/linter.vim @@ -417,16 +417,6 @@ function! ale#linter#Get(original_filetypes) abort return reverse(l:combined_linters) endfunction -function! ale#linter#RemoveIgnored(buffer, filetype, linters) 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') - - return !empty(l:ignore_config) || l:disable_lsp - \ ? ale#engine#ignore#Exclude(a:filetype, a:linters, l:ignore_config, l:disable_lsp) - \ : a:linters -endfunction - " Given a buffer and linter, get the executable String for the linter. function! ale#linter#GetExecutable(buffer, linter) abort let l:Executable = a:linter.executable |