Skip to content

Commit

Permalink
Fix issue with auto-installed lsp server
Browse files Browse the repository at this point in the history
  • Loading branch information
themkat committed Oct 9, 2024
1 parent 1c303c0 commit c1c5e0f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lsp-m68k.el
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@

(lsp-register-client
(make-lsp-client
:new-connection (lsp-stdio-connection (lambda () (list "m68k-lsp-server" "--stdio")))
:new-connection (lsp-stdio-connection (lambda () (list (or (executable-find "m68k-lsp-server")
(lsp-package-path 'm68k-lsp-server))
"--stdio")))
:priority -1
:activation-fn (lsp-activate-on "m68k")
:initialized-fn (lambda (workspace)
Expand Down

0 comments on commit c1c5e0f

Please sign in to comment.