We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3e2f3aa commit d89303fCopy full SHA for d89303f
1 file changed
plugin/interfaces/neomake.vim
@@ -4,6 +4,20 @@ augroup neomake-run
4
autocmd BufWritePost * Neomake
5
augroup END
6
7
+function! s:local_css_makers()
8
+ let l:makers = []
9
+
10
+ if executable('csslint') && !executable('stylelint')
11
+ call add(l:makers, 'csslint')
12
+ endif
13
14
+ if executable('stylelint')
15
+ call add(l:makers, 'stylelint')
16
17
18
+ return l:makers
19
+endfunction
20
21
function! s:local_javascript_makers()
22
let l:makers = []
23
@@ -29,6 +43,8 @@ endfunction
29
43
" Set enabled node makers.
30
44
augroup neomake-makers-node
31
45
autocmd!
46
+ autocmd FileType css
47
+ \ let b:neomake_css_enabled_makers = s:local_css_makers()
32
48
autocmd FileType javascript
33
49
\ let b:neomake_javascript_enabled_makers = s:local_javascript_makers()
34
50
autocmd FileType javascript.jsx
0 commit comments