this post was submitted on 14 Nov 2023
1 points (100.0% liked)

Emacs

313 readers
2 users here now

A community for the timeless and infinitely powerful editor. Want to see what Emacs is capable of?!

Get Emacs

Rules

  1. Posts should be emacs related
  2. Be kind please
  3. Yes, we already know: Google results for "emacs" and "vi" link to each other. We good.

Emacs Resources

Emacs Tutorials

Useful Emacs configuration files and distributions

Quick pain-saver tip

founded 1 year ago
MODERATORS
 

Hi everyone! I'm currently using doom emacs with eglot. And I'm quite happy of how lightweight it is. However, I'm only able to see the diagnostics message when hovering the cursor over some error.

I wonder if there is any similar package or eglot configuration to replicate what Error Lens does in vscode? Thank you in advance.

My config looks as follows, I'd kindly appreciate any suggestion that could help me to improve my eglot experience:

(use-package! eglot
  :defer t
  :init
  (setq eglot-autoshutdown t)
  :config
  (setq eglot-ignored-server-capabilities '(:hoverProvider :documentLinkProvider :inlayHintProvider :documentOnTypeFormattingProvider))
  (add-to-list 'eglot-server-programs '(rust-mode "rust-analyzer"))
  (add-to-list 'eglot-server-programs '(scala-mode "metals"))
  (add-hook 'eglot-managed-mode-hook (lambda () (flymake-mode -1)))
  :hook
  ((rjsx-mode rust-mode typescript-mode js2-mode scala-mode) . eglot-ensure))

no comments (yet)
sorted by: hot top controversial new old
there doesn't seem to be anything here