ts-node.vim 514 B

1234567891011121314151617181920212223242526
  1. " Vim compiler file
  2. " Compiler: TypeScript Runner
  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 = "node"
  9. let s:cpo_save = &cpo
  10. set cpo&vim
  11. " CompilerSet makeprg=npx\ ts-node
  12. CompilerSet makeprg=ts-node
  13. CompilerSet errorformat=%f\ %#(%l\\,%c):\ %trror\ TS%n:\ %m,
  14. \%E%f:%l,
  15. \%+Z%\\w%\\+Error:\ %.%#,
  16. \%C%p^%\\+,
  17. \%C%.%#,
  18. \%-G%.%#
  19. let &cpo = s:cpo_save
  20. unlet s:cpo_save