Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attempt at using serve-d via eglot in Emacs #355

Open
nordlow opened this issue Jan 10, 2024 · 0 comments
Open

Attempt at using serve-d via eglot in Emacs #355

nordlow opened this issue Jan 10, 2024 · 0 comments

Comments

@nordlow
Copy link

nordlow commented Jan 10, 2024

The following code fails for me

(defun d-serve-d-command ()
  "Shell command to start serve-d."
  "serve-d")

(use-package eglot						;`eglot.el' now part of Emacs
  :ensure t
  :hook (d-mode . eglot-ensure)
  :hook (d-ts-mode . eglot-ensure)
  ;; TODO: update binary of serve-d if needed
  :config
  (add-to-list 'eglot-server-programs ;https://forum.dlang.org/post/[email protected]
                 `((d-mode d-ts-mode) ,(d-serve-d-command))))

as

eglot--error: [eglot] Unsupported or ignored LSP capability `:declarationProvider'

when trying out

M-x eglot-find-declaration

.

M-x eglot-list-connections

lists

serve-d          SIL              d-ts-mode, d-mode

. What am I missing here?

Do I need to tell eglot to use another LSP capability when looking up symbol definitions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant