Disble python linter if env var is set
This commit is contained in:
parent
d666330b67
commit
db3cc9a16d
8
init.vim
8
init.vim
|
@ -144,3 +144,11 @@ autocmd InsertLeave * if pumvisible() == 0|pclose|endif
|
||||||
inoremap <expr><TAB> pumvisible() ? "\<C-n>" : "\<TAB>"
|
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
|
||||||
|
" }}}
|
||||||
|
|
Loading…
Reference in New Issue