neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

jq.vim (544B)


      1 " Vim compiler file
      2 " Compiler:	jq
      3 " Maintainer:	Vito <vito.blog@gmail.com>
      4 " Last Change:	2024 Apr 17
      5 " Upstream: https://github.com/vito-c/jq.vim
      6 
      7 if exists('b:current_compiler')
      8  finish
      9 endif
     10 let b:current_compiler = 'jq'
     11 
     12 let s:save_cpoptions = &cpoptions
     13 set cpoptions&vim
     14 
     15 if has('unix')
     16  CompilerSet makeprg=jq\ -f\ %:S\ /dev/null
     17 else
     18  CompilerSet makeprg=jq\ -f\ %:S\ nul
     19 endif
     20 CompilerSet errorformat=%E%m\ at\ \\<%o\\>\\,\ line\ %l:,
     21            \%Z,
     22            \%-G%.%#
     23 
     24 let &cpoptions = s:save_cpoptions
     25 unlet s:save_cpoptions