Add option to disable "linter not found" errors
I want to disable error messages about not found linter executable. I have one Vim setup for many hosts, and it's perfectly OK if there is no linter on one of them.
So you configure them explicitly then I assume? (there are no errors when auto-detection does not find makers)
Yes. I need disabled by default mypy for most of my projects.
"mypy" is not enabled by default. Is this mostly/only for Python files?
I mostly write Python, though I don't see any difference between Python and not-Python files.
I don't see any difference between Python and not-Python files.
Sure. I'm just interested in understanding your use case.
Can you post your Neomake config, please?
It was like this:
let g:neomake_highlight_lines = 1
let g:neomake_highlight_columns = 0
let g:neomake_shellcheck_args = ['-fgcc']
let g:neomake_python_enabled_makers = ['python', 'flake8', 'mypy', 'pylint']
Now I changed it to this, but it's looks quite ugly:
let g:neomake_highlight_lines = 1
let g:neomake_highlight_columns = 0
let g:neomake_shellcheck_args = ['-fgcc']
let g:neomake_python_enabled_makers = ['python']
if executable('flake8')
let g:neomake_python_enabled_makers += ['flake8']
endif
if executable('mypy')
let g:neomake_python_enabled_makers += ['mypy']
endif
if executable('pylint')
let g:neomake_python_enabled_makers += ['pylint']
endif