Skip to content

Commit

Permalink
lsp-dylan.el: evaluate lsp-dylan--command at run-time
Browse files Browse the repository at this point in the history
Recommended so users can customize it at run-time if desired.
  • Loading branch information
cgay committed Mar 10, 2024
1 parent 163228b commit d869d13
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions lsp-dylan.el
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,14 @@
(defun lsp-dylan--start ()
"Do whatever we need to set up and register with emacs-lsp"
(lsp-register-client
(make-lsp-client :new-connection (lsp-stdio-connection 'lsp-dylan--command)
:environment-fn 'lsp-dylan--environment
:major-modes '(dylan-mode)
:initialized-fn 'lsp-dylan--initialized
:server-id 'lsp-dylan)))
(make-lsp-client
;; Note we wrap lsp-dylan--command in lambda so users can customize it at
;; run time.
:new-connection (lsp-stdio-connection (lambda () lsp-dylan--command))
:environment-fn 'lsp-dylan--environment
:major-modes '(dylan-mode)
:initialized-fn 'lsp-dylan--initialized
:server-id 'lsp-dylan)))

(lsp-consistency-check lsp-dylan)
(lsp-dylan--start)

0 comments on commit d869d13

Please sign in to comment.