Skip to content

Commit 0e0de4f

Browse files
committed
feat(nvom): Run RubyLSP and Rubocop LSP with YJIT
1 parent 417210a commit 0e0de4f

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.config/nvim/after/lsp/rubocop.lua

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
return {
2-
cmd = { "bundle", "exec", "rubocop", "--lsp" },
2+
cmd = { "bundle", "exec", "rubocop", "--lsp" },
3+
cmd_env = {
4+
RUBY_YJIT_ENABLE = "1",
5+
},
36
}

.config/nvim/after/lsp/ruby_lsp.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
return {
2+
cmd_env = {
3+
RUBY_YJIT_ENABLE = "1",
4+
},
5+
26
init_options = {
37
addonSettings = {
48
["Ruby LSP Rails"] = {

0 commit comments

Comments
 (0)