]> git.eshelyaron.com Git - emacs.git/commit
Eglot: suggest code actions at point
authorJoão Távora <joaotavora@gmail.com>
Sun, 26 Jan 2025 23:26:51 +0000 (23:26 +0000)
committerEshel Yaron <me@eshelyaron.com>
Thu, 30 Jan 2025 18:11:26 +0000 (19:11 +0100)
commit97a746c6e8db90c785fd8987485df1243d8f2447
tree48dc0a4e2c564b15f2d312468d3d44f125bf2b2c
parentb87bc1152138a7ce798d484b37ebcae17da34a24
Eglot: suggest code actions at point

* lisp/progmodes/eglot.el (eglot-code-action-indicator-face): New face.
(eglot-code-action-indications, eglot-code-action-indicator): New defcustoms.
(eglot--highlights): Move up here.
(eglot--managed-mode): Rework.
(eglot--server-menu-map, eglot--main-menu-map): Extract maps into
variables (avoids odd mode-line bug).
(eglot--mode-line-format): Rework.
(eglot--code-action-params): New helper.
(eglot-code-actions): Rework.
(eglot--read-execute-code-action): Tweak.
(eglot-code-action-suggestion): New function.

* etc/EGLOT-NEWS: Mention new feature.

* doc/misc/eglot.texi (Eglot Features): Mention new feature.
(Customization Variables): Mention new variables.

(cherry picked from commit d6a502fc7a69dfa11aa100da5966a6962a82f613)
doc/misc/eglot.texi
etc/EGLOT-NEWS
lisp/progmodes/eglot.el