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))