From 5ecc22db4147886ad5215ac3ab46319e0912c63a Mon Sep 17 00:00:00 2001 From: Thomas Forgione Date: Tue, 4 Jun 2019 15:32:08 +0200 Subject: [PATCH] Allow to disable java linter --- init.vim | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/init.vim b/init.vim index 525468d..0fdbb56 100644 --- a/init.vim +++ b/init.vim @@ -145,10 +145,10 @@ inoremap pumvisible() ? "\" : "\" " }}} " CUSTOM THINGS DEPENDING ON ENV ####################################{{{ -let nvim_disable_python_linter=$NVIM_DISABLE_PYTHON_LINTER -if nvim_disable_python_linter == '1' -let g:ale_linters = { -\ 'python': [], -\} +let g:ale_linters = {} +if $NVIM_DISABLE_PYTHON_LINTER == '1' + let g:ale_linters.python = [] +endif +if $NVIM_DISABLE_JAVA_LINTER == '1' + let g:ale_linters.java = [] endif -" }}}