]> git.eshelyaron.com Git - emacs.git/commit
Eglot: rework eglot-imenu
authorJoão Távora <joaotavora@gmail.com>
Fri, 7 Apr 2023 11:54:39 +0000 (12:54 +0100)
committerJoão Távora <joaotavora@gmail.com>
Fri, 7 Apr 2023 11:57:59 +0000 (12:57 +0100)
commitb1f8d98a119ab8845d25d80c480cde6e385d8749
tree2eafacc396cb7f1ec57a7155bfd004c50ece355d
parent5e5f5b28e92a3bb927bb03c783c426c6c3baeadc
Eglot: rework eglot-imenu

Most newer servers return a vector of 'DocumentSymbol' as a response
to 'textDocument/documentSymbol'.  It's not worth trying to dumb this
down to imenu format of 'SymbolInformation' vectors.

This lays groundwork for the forthcoming "breadcrumb" feature of
bug#58431.

* lisp/progmodes/eglot.el
(eglot--imenu-SymbolInformation, eglot--imenu-DocumentSymbol): New
helpers.
(eglot-imenu): Rework.
lisp/electric.el
lisp/progmodes/eglot.el