- commit
- 0b4fdfd54c8c78991305d082cdd0aedfec753f52
- parent
- 5bd44f47b44cad395ee445ebc88ea7f4daf4bf24
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2021-02-12 17:38
use first found linter e.g. avoid using HTML linters for PHP
Diffstat
| M | ftplugin/c_clang.vim | 2 | +- |
| M | ftplugin/css_stylelint.vim | 2 | +- |
| M | ftplugin/javascript_eslint.vim | 2 | +- |
| M | ftplugin/javascript_jshint.vim | 2 | +- |
| M | ftplugin/php_php.vim | 2 | +- |
| M | ftplugin/python_flake8.vim | 2 | +- |
| M | ftplugin/sh_shellcheck.vim | 2 | +- |
7 files changed, 7 insertions, 7 deletions
diff --git a/ftplugin/c_clang.vim b/ftplugin/c_clang.vim
@@ -1,4 +1,4 @@1 -1 if executable('clang')-1 1 if executable('clang') && !exists('b:lint_prg') 2 2 let b:lint_prg = 'clang -x c -fsyntax-only' 3 3 let b:lint_format = '%f:%l:%c: %m' 4 4 endif
diff --git a/ftplugin/css_stylelint.vim b/ftplugin/css_stylelint.vim
@@ -1,4 +1,4 @@1 -1 if executable('stylelint')-1 1 if executable('stylelint') && !exists('b:lint_prg') 2 2 let b:lint_prg = 'stylelint --syntax scss -f unix' 3 3 let b:lint_format = '%f:%l:%c: %m' 4 4 endif
diff --git a/ftplugin/javascript_eslint.vim b/ftplugin/javascript_eslint.vim
@@ -1,4 +1,4 @@1 -1 if executable('eslint')-1 1 if executable('eslint') && !exists('b:lint_prg') 2 2 let b:lint_prg = 'eslint -f unix' 3 3 let b:lint_format = '%f:%l:%c: %m' 4 4 endif
diff --git a/ftplugin/javascript_jshint.vim b/ftplugin/javascript_jshint.vim
@@ -1,4 +1,4 @@1 -1 if executable('jshint')-1 1 if executable('jshint') && !exists('b:lint_prg') 2 2 let b:lint_prg = 'jshint' 3 3 let b:lint_format = '%f: line %l\, col %c\, %m' 4 4 endif
diff --git a/ftplugin/php_php.vim b/ftplugin/php_php.vim
@@ -1,4 +1,4 @@1 -1 if executable('php')-1 1 if executable('php') && !exists('b:lint_prg') 2 2 let b:lint_prg = 'php -l' 3 3 let b:lint_format = '%m in %f on line %l' 4 4 endif
diff --git a/ftplugin/python_flake8.vim b/ftplugin/python_flake8.vim
@@ -1,4 +1,4 @@1 -1 if executable('flake8')-1 1 if executable('flake8') && !exists('b:lint_prg') 2 2 let b:lint_prg = 'flake8' 3 3 let b:lint_format = '%f:%l:%c: %m,%f:%l: %m' 4 4 endif
diff --git a/ftplugin/sh_shellcheck.vim b/ftplugin/sh_shellcheck.vim
@@ -1,4 +1,4 @@1 -1 if executable('shellcheck')-1 1 if executable('shellcheck') && !exists('b:lint_prg') 2 2 let b:lint_prg = 'shellcheck -f gcc' 3 3 let b:lint_format = '%f:%l:%c: %m' 4 4 endif