mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-16 09:14:18 +00:00
Eglot: simplify Imenu setup again
See https://github.com/joaotavora/eglot/issues/1569. * lisp/progmodes/eglot.el (eglot--managed-mode): Tweak. * etc/EGLOT-NEWS: Tweak.
This commit is contained in:
parent
10b132006e
commit
f2250ba244
2 changed files with 5 additions and 4 deletions
|
|
@ -45,10 +45,10 @@ thinks responses to inflight requests are no longer useful. The current
|
|||
2026 LSP landscape (especially gopls and ocamllsp) suggests this is
|
||||
beneficial and helps servers avoid costly useless work.
|
||||
|
||||
** Imenu setup no longer uses advice (github#1569)
|
||||
** Imenu setup is more predictable (github#1569)
|
||||
|
||||
Eglot now sets 'imenu-create-index-function' directly without using
|
||||
advice, making the integration cleaner and more predictable.
|
||||
Eglot now sets 'imenu-create-index-function' using ':override' advice,
|
||||
making the integration cleaner and more predictable.
|
||||
|
||||
** Fixed textDocument/prepareRename support (github#1554)
|
||||
|
||||
|
|
|
|||
|
|
@ -2375,7 +2375,8 @@ the previous reports for TOKEN.")
|
|||
#'eldoc-documentation-compose)
|
||||
(unless (or (eglot--stay-out-of-p 'imenu)
|
||||
(not (eglot-server-capable :documentSymbolProvider)))
|
||||
(eglot--setq-saving imenu-create-index-function #'eglot-imenu))
|
||||
(add-function :override (local 'imenu-create-index-function)
|
||||
#'eglot-imenu))
|
||||
(unless (eglot--stay-out-of-p 'flymake) (flymake-mode 1))
|
||||
(unless (eglot--stay-out-of-p 'eldoc)
|
||||
(dolist (f (list #'eglot-signature-eldoc-function
|
||||
|
|
|
|||
Loading…
Reference in a new issue