.vim/compiler/rubocop.vim

Tue, 30 Apr 2024 21:53:24 -0500

author
Meredith Howard <mhoward@roomag.org>
date
Tue, 30 Apr 2024 21:53:24 -0500
changeset 1152
59d9ca2ec2fd
parent 660
0c78da269df5
permissions
-rw-r--r--

Match LSP maps to neovim 0.10 defs

if exists("current_compiler")
  finish
endif
let current_compiler = "rubocop"

if exists(":CompilerSet") != 2
  command -nargs=* CompilerSet setlocal <args>
endif

let s:savecpo = &cpo
set cpo&vim

CompilerSet makeprg=rubocop\ -f\ c\ %
CompilerSet errorformat=%f:%l:%c:\ %t:\ %m,%E%f:%l:\ %m

let &cpo = s:savecpo
unlet s:savecpo

mercurial