Skip to content

Commit a7479ef

Browse files
committed
lsp-rub-lsp: support lsp-ruby-lsp-server-command variable
1 parent 4c5360b commit a7479ef

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

clients/lsp-ruby-lsp.el

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,16 @@
4545
:group 'lsp-ruby-lsp
4646
:package-version '(lsp-mode . "9.0.1"))
4747

48+
(defcustom lsp-ruby-lsp-server-command '("ruby-lsp")
49+
"Command to start ruby-lsp language server."
50+
:type '(repeat string)
51+
:group 'lsp-ruby-lsp
52+
:package-version '(lsp-mode . "9.0.1"))
53+
4854
(defun lsp-ruby-lsp--build-command ()
4955
(append
5056
(if lsp-ruby-lsp-use-bundler '("bundle" "exec"))
51-
'("ruby-lsp")))
57+
lsp-ruby-lsp-server-command))
5258

5359
(defun lsp-ruby-lsp--open-file (arg_hash)
5460
"Open a file. This function is for code-lens provided by ruby-lsp-rails."

0 commit comments

Comments
 (0)