aboutsummaryrefslogtreecommitdiff
path: root/.vim/autoload/neomake/makers/ft/less.vim
blob: 51ba941b77354a67653357021678c379c6a18ff8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
" vim: ts=4 sw=4 et

function! neomake#makers#ft#less#EnabledMakers() abort
    return executable('stylelint') ? ['stylelint'] : ['lessc']
endfunction

function! neomake#makers#ft#less#lessc() abort
    return {
        \ 'args': ['--lint', '--no-color'],
        \ 'errorformat':
            \ '%m in %f on line %l\, column %c:,' .
            \ '%m in %f:%l:%c,' .
            \ '%-G%.%#'
    \ }
endfunction

function! neomake#makers#ft#less#stylelint() abort
    return neomake#makers#ft#css#stylelint()
endfunction