Skip to content

Commit 2fbf5e0

Browse files
authored
fix remote rust-analyzer path when using tramp (#4696)
1 parent e4d02ca commit 2fbf5e0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

clients/lsp-rust.el

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1776,10 +1776,12 @@ https://github.com/rust-lang/rust-analyzer/blob/master/docs/dev/lsp-extensions.m
17761776
:new-connection (lsp-stdio-connection
17771777
(lambda ()
17781778
`(,(or (executable-find
1779-
(cl-first lsp-rust-analyzer-server-command))
1779+
(cl-first lsp-rust-analyzer-server-command)
1780+
t)
17801781
(lsp-package-path 'rust-analyzer)
17811782
"rust-analyzer")
1782-
,@(cl-rest lsp-rust-analyzer-server-command))))
1783+
,@(cl-rest lsp-rust-analyzer-server-command)))
1784+
(lambda () t))
17831785
:activation-fn (lsp-activate-on "rust")
17841786
:priority (if (eq lsp-rust-server 'rust-analyzer) 1 -1)
17851787
:initialization-options 'lsp-rust-analyzer--make-init-options

0 commit comments

Comments
 (0)