jsonlint.vim 464 B

12345678910111213141516171819202122
  1. " Vim compiler file
  2. " Compiler: JSON Lint
  3. " Maintainer: Doug Kearns <dougkearns@gmail.com>
  4. " Last Change: 2024 Apr 03
  5. if exists("current_compiler")
  6. finish
  7. endif
  8. let current_compiler = "jsonlint"
  9. let s:cpo_save = &cpo
  10. set cpo&vim
  11. " CompilerSet makeprg=npx\ jsonlint\ --compact\ --quiet
  12. CompilerSet makeprg=jsonlint\ --compact\ --quiet
  13. CompilerSet errorformat=%f:\ line\ %l\\,\ col\ %c\\,\ found:\ %m,
  14. \%-G%.%#
  15. let &cpo = s:cpo_save
  16. unlet s:cpo_save