Skip to content

Commit 58d2547

Browse files
authored
README: lsp server might be in exec-path instead of PATH (#24)
1 parent 678641d commit 58d2547

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,9 @@ Then, put the `emacs-lsp-booster` binary in your $PATH (e.g. `~/.local/bin`).
9494
(not (functionp 'json-rpc-connection)) ;; native json-rpc
9595
(executable-find "emacs-lsp-booster"))
9696
(progn
97+
(let ((command-from-exec-path (executable-find (car orig-result))))
98+
(when command-from-exec-path
99+
(setcar orig-result command-from-exec-path)))
97100
(message "Using emacs-lsp-booster for %s!" orig-result)
98101
(cons "emacs-lsp-booster" orig-result))
99102
orig-result)))

0 commit comments

Comments
 (0)