.vim/compiler/rubocop.vim

Sun, 14 Jul 2024 22:56:35 -0500

author
Meredith Howard <mhoward@roomag.org>
date
Sun, 14 Jul 2024 22:56:35 -0500
changeset 1175
7907b9c30399
parent 660
0c78da269df5
permissions
-rw-r--r--

Add which-key.nvim and descriptions

660
0c78da269df5 add compiler/rubocop.vim
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
1 if exists("current_compiler")
0c78da269df5 add compiler/rubocop.vim
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
2 finish
0c78da269df5 add compiler/rubocop.vim
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
3 endif
0c78da269df5 add compiler/rubocop.vim
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
4 let current_compiler = "rubocop"
0c78da269df5 add compiler/rubocop.vim
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
5
0c78da269df5 add compiler/rubocop.vim
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
6 if exists(":CompilerSet") != 2
0c78da269df5 add compiler/rubocop.vim
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
7 command -nargs=* CompilerSet setlocal <args>
0c78da269df5 add compiler/rubocop.vim
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
8 endif
0c78da269df5 add compiler/rubocop.vim
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
9
0c78da269df5 add compiler/rubocop.vim
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
10 let s:savecpo = &cpo
0c78da269df5 add compiler/rubocop.vim
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
11 set cpo&vim
0c78da269df5 add compiler/rubocop.vim
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
12
0c78da269df5 add compiler/rubocop.vim
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
13 CompilerSet makeprg=rubocop\ -f\ c\ %
0c78da269df5 add compiler/rubocop.vim
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
14 CompilerSet errorformat=%f:%l:%c:\ %t:\ %m,%E%f:%l:\ %m
0c78da269df5 add compiler/rubocop.vim
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
15
0c78da269df5 add compiler/rubocop.vim
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
16 let &cpo = s:savecpo
0c78da269df5 add compiler/rubocop.vim
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
17 unlet s:savecpo

mercurial