]> git.eshelyaron.com Git - emacs.git/commit
Implement on-type-formatting support
authorFelicián Németh <felician.nemeth@gmail.com>
Wed, 23 Mar 2022 20:47:45 +0000 (21:47 +0100)
committerJoão Távora <joaotavora@gmail.com>
Tue, 29 Mar 2022 09:03:40 +0000 (10:03 +0100)
commitc2d97d22aa535af2640676e1df05a41f9abbd1e3
tree8f8702f2fed860c50f92f67cdc439c04e66860d0
parent5d2f6bc667afb8252170690ad9523f327d93bc74
Implement on-type-formatting support

* eglot.el (eglot-format): Add new optional argument `on-type-format'
to request :textDocument/onTypeFormatting, and ...
(eglot--post-self-insert-hook): ... call it from here when necessary.

* eglot-tests.el (eglot--simulate-key-event): New helper defun.
(rust-on-type-formatting): New test.

* NEWS.md: mention feature.

GitHub-reference: close https://github.com/joaotavora/eglot/issues/899
lisp/progmodes/eglot.el