Fri, 15 May 2020 22:55:03 -0500
Load vim-lsp if gopls is present alone
660 | 1 | if exists("current_compiler") |
2 | finish | |
3 | endif | |
4 | let current_compiler = "rubocop" | |
5 | ||
6 | if exists(":CompilerSet") != 2 | |
7 | command -nargs=* CompilerSet setlocal <args> | |
8 | endif | |
9 | ||
10 | let s:savecpo = &cpo | |
11 | set cpo&vim | |
12 | ||
13 | CompilerSet makeprg=rubocop\ -f\ c\ % | |
14 | CompilerSet errorformat=%f:%l:%c:\ %t:\ %m,%E%f:%l:\ %m | |
15 | ||
16 | let &cpo = s:savecpo | |
17 | unlet s:savecpo |