serve-d and emacs
Per Nordlöw
per.nordlow at gmail.com
Wed Apr 19 10:37:04 UTC 2023
On Wednesday, 19 April 2023 at 10:35:31 UTC, Per Nordlöw wrote:
> I believe this should work
>
> ```elisp
> (defun serve-d-command ()
> "Shell command to start serve-d."
> '("dub" "run" "--vquiet" "serve-d"))
>
> (when (require 'lsp nil t)
> (dolist (mode '(d-mode d-ts-mode))
> (add-hook mode #'lsp)
> (add-to-list 'lsp-language-id-configuration `(,mode . "d")))
> (lsp-register-client
> (make-lsp-client
> :new-connection (lsp-stdio-connection #'serve-d-command)
> :major-modes '(d-mode d-ts-mode)
> :server-id 'serve-d)))
> ```
>
> but unfortunately I get status disconncted in the mode-line and
> the call to dub run shuts down. Clues anyone?
How do I most easily get the debug output from
```
'("dub" "run" "--vquiet" "serve-d")
```
?
More information about the Digitalmars-d-learn
mailing list