diff options
author | João Távora <joaotavora@gmail.com> | 2023-03-19 00:47:55 +0000 |
---|---|---|
committer | João Távora <joaotavora@gmail.com> | 2023-03-19 19:53:00 +0000 |
commit | 5bbbd70f56e703a18a28666cf12b28e02ffc241f (patch) | |
tree | bc654421046594ca9ac55b8c0141bb2913e638fa /lisp/echistory.el | |
parent | c3a543123abeb8542f50fdd5068a4efe380634ec (diff) | |
download | emacs-5bbbd70f56e703a18a28666cf12b28e02ffc241f.tar.gz emacs-5bbbd70f56e703a18a28666cf12b28e02ffc241f.tar.bz2 emacs-5bbbd70f56e703a18a28666cf12b28e02ffc241f.zip |
Improve ergonomics of Eglot's inlay hints
Instead of deleting inlay hints instantly as soon as the affected
changes, make hint overlays span one character (instead of being
length 0). Give the overlays an "evaporate" property.
Given an inlay hints at position POS, its attached to [POS, POS+1] if
it's kind=1 (usually type hints) and [POS-1, POS] otherwise. For
kind=1 hints, the 'cursor position of the first such overlay is also
tweaked, so that's it's less akward to edit around it.
* lisp/progmodes/eglot.el (eglot--before-change): Don't delete hints
here.
(eglot--update-hints-1): Rework.
Diffstat (limited to 'lisp/echistory.el')
0 files changed, 0 insertions, 0 deletions