aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/.vim/autoload/neomake/makers/ft/less.vim
diff options
context:
space:
mode:
Diffstat (limited to 'dotfiles/.vim/autoload/neomake/makers/ft/less.vim')
-rw-r--r--dotfiles/.vim/autoload/neomake/makers/ft/less.vim19
1 files changed, 19 insertions, 0 deletions
diff --git a/dotfiles/.vim/autoload/neomake/makers/ft/less.vim b/dotfiles/.vim/autoload/neomake/makers/ft/less.vim
new file mode 100644
index 0000000..51ba941
--- /dev/null
+++ b/dotfiles/.vim/autoload/neomake/makers/ft/less.vim
@@ -0,0 +1,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