eglot adds extensive support of the language server protocol to Emacs. However, one feature it lacks is Code Lens support. eglot-codelens adds seeks to remady this by integrating with eglot and adding a new minor mode eglot-codelens-mode.
(use-package eglot-codelens
:after eglot
:init
;; Emacs 29
(unless (package-installed-p 'eglot-codelens)
(package-vc-install
'(eglot-codelens :url "https://github.com/Gavinok/eglot-codelens.git")))
:config
(eglot-codelens-mode +1))- eglot-codelens-execute-current-lens
- Inspect the current overlays at point and attempt to execute it.
- eglot-codelens-mode
- Toggle the minor mode for displaying Code Lenses with eglot.