Disble python linter if env var is set

This commit is contained in:
Thomas Forgione 2019-05-24 09:53:57 +02:00
parent d666330b67
commit db3cc9a16d
No known key found for this signature in database
GPG Key ID: 203DAEA747F48F41
1 changed files with 8 additions and 0 deletions

View File

@ -144,3 +144,11 @@ autocmd InsertLeave * if pumvisible() == 0|pclose|endif
inoremap <expr><TAB> pumvisible() ? "\<C-n>" : "\<TAB>"
" }}}
" 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': [],
\}
endif
" }}}