Function: eglot-inlay-hints-mode
eglot-inlay-hints-mode is an interactive and byte-compiled function
defined in eglot.el.gz.
Signature
(eglot-inlay-hints-mode &optional ARG)
Documentation
Minor mode for annotating buffers with LSP server's inlay hints.
This is a minor mode. If called interactively, toggle the
Eglot-Inlay-Hints mode mode. If the prefix argument is positive,
enable the mode, and if it is zero or negative, disable the mode.
If called from Lisp, toggle the mode if ARG is toggle. Enable the
mode if ARG is nil, omitted, or is a positive number. Disable the mode
if ARG is a negative number.
To check whether the minor mode is enabled in the current buffer,
evaluate the variable eglot-inlay-hints-mode(var)/eglot-inlay-hints-mode(fun).
The mode's hook is called both when the mode is enabled and when it is disabled.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/eglot.el.gz
(define-minor-mode eglot-inlay-hints-mode
"Minor mode for annotating buffers with LSP server's inlay hints."
:global nil
(cond (eglot-inlay-hints-mode
(if (eglot-server-capable :inlayHintProvider)
(jit-lock-register #'eglot--update-hints 'contextual)
(eglot-inlay-hints-mode -1)))
(t
(jit-lock-unregister #'eglot--update-hints)
(remove-overlays nil nil 'eglot--inlay-hint t))))