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