diff options
author | Matthieu Coudron <mattator@gmail.com> | 2020-08-15 17:45:18 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-15 17:45:18 +0200 |
commit | 37aa9c9c94551ffed8ba5721d5b8ea8e172d7377 (patch) | |
tree | edc210f304d4353dbeb4224b5e42941f332d7a1d /runtime/compiler | |
parent | 75aeb815b4db487186e1f4471b37f54430468c76 (diff) | |
parent | 056d99b0f6072030a8946303fce58a86fd83bf57 (diff) | |
download | rneovim-37aa9c9c94551ffed8ba5721d5b8ea8e172d7377.tar.gz rneovim-37aa9c9c94551ffed8ba5721d5b8ea8e172d7377.tar.bz2 rneovim-37aa9c9c94551ffed8ba5721d5b8ea8e172d7377.zip |
Merge pull request #12713 from janlazo/vim-8.2.1347
vim-patch:8.1.{573,1674,2097,2098,2341},8.2.{1347,1360,1361,1364,1369,1377,1379,1386,1409,1410,1438,1441,1458}
Diffstat (limited to 'runtime/compiler')
-rw-r--r-- | runtime/compiler/xo.vim | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/runtime/compiler/xo.vim b/runtime/compiler/xo.vim new file mode 100644 index 0000000000..525657d4bb --- /dev/null +++ b/runtime/compiler/xo.vim @@ -0,0 +1,26 @@ +" Vim compiler file +" Compiler: XO +" Maintainer: Doug Kearns <dougkearns@gmail.com> +" Last Change: 2019 Jul 10 + +if exists("current_compiler") + finish +endif +let current_compiler = "xo" + +if exists(":CompilerSet") != 2 " older Vim always used :setlocal + command -nargs=* CompilerSet setlocal <args> +endif + +let s:cpo_save = &cpo +set cpo&vim + +" CompilerSet makeprg=npx\ xo\ --reporter\ compact + +CompilerSet makeprg=xo\ --reporter\ compact +CompilerSet errorformat=%f:\ line\ %l\\,\ col\ %c\\,\ %trror\ %m, + \%f:\ line\ %l\\,\ col\ %c\\,\ %tarning\ %m, + \%-G%.%# + +let &cpo = s:cpo_save +unlet s:cpo_save |