]> git.eshelyaron.com Git - emacs.git/commit
Better decide what text exactly to present as completions
authorJoão Távora <joaotavora@gmail.com>
Sat, 19 May 2018 12:16:36 +0000 (13:16 +0100)
committerJoão Távora <joaotavora@gmail.com>
Sat, 19 May 2018 16:05:20 +0000 (17:05 +0100)
commit75ca40724b869991b191e02e5930db21c1527dd1
treece899e4cd322ee7bb7c2156fccc6728ffd351235
parent9606e5950a9d6b466bfb5ce78875c247d6560b55
Better decide what text exactly to present as completions

For inserting, :insertText takes precedence over :label.
For annotating, first sentence of :documentation, then :detail,
then :kind name.

Also remember to send didChange in the :exit-function

* eglot.el (eglot-completion-function): Rework main function and
:annotation-function, and :exit-function
lisp/progmodes/eglot.el