]> git.eshelyaron.com Git - emacs.git/commit
Turn on Eglot inlay hints by default
authorJoão Távora <joaotavora@gmail.com>
Sat, 4 Mar 2023 15:05:15 +0000 (15:05 +0000)
committerJoão Távora <joaotavora@gmail.com>
Sat, 4 Mar 2023 19:15:48 +0000 (19:15 +0000)
commit6c66dbd02c7773a4347583b35b8caa219df30807
tree8fd98689e78119470d9c8e3890d7c56f196c0e12
parent246f5b541c50b28c4303a365f8d8cd384f0aa6c9
Turn on Eglot inlay hints by default

This is like any other server-provided feature, and may be turned off
client-side by setting eglot-ignored-server-capabilities like

   (add-to-list 'eglot-ignored-server-capabilities :inlayHintProvider)

* lisp/progmodes/eglot.el (eglot--maybe-activate-editing-mode):
Activate eglot-inlay-hints-mode.
(eglot-inlay-hints-mode): Instead of warning about missing
:inlayHintProvider, turn off eglot-inlay-hints-mode.
lisp/progmodes/eglot.el