stylelint.vim 651 B

123456789101112131415161718192021222324252627
  1. " Vim compiler file
  2. " Compiler: Stylelint
  3. " Maintainer: Doug Kearns <dougkearns@gmail.com>
  4. " Last Change: 2020 Jun 10
  5. if exists("current_compiler")
  6. finish
  7. endif
  8. let current_compiler = "stylelint"
  9. if exists(":CompilerSet") != 2 " older Vim always used :setlocal
  10. command -nargs=* CompilerSet setlocal <args>
  11. endif
  12. let s:cpo_save = &cpo
  13. set cpo&vim
  14. " CompilerSet makeprg=npx\ stylelint\ --formatter\ compact
  15. CompilerSet makeprg=stylelint\ --formatter\ compact
  16. CompilerSet errorformat=%f:\ line\ %l\\,\ col\ %c\\,\ %trror\ -\ %m,
  17. \%f:\ line\ %l\\,\ col\ %c\\,\ %tarning\ -\ %m,
  18. \%-G%.%#
  19. let &cpo = s:cpo_save
  20. unlet s:cpo_save