]> git.eshelyaron.com Git - emacs.git/commitdiff
Apply eglot--format-markup to signature documentation
authorFredrik Bergroth <fbergroth@gmail.com>
Thu, 13 Dec 2018 11:55:28 +0000 (12:55 +0100)
committerJoão Távora <joaotavora@gmail.com>
Sun, 16 Dec 2018 12:22:05 +0000 (12:22 +0000)
Copyright-paperwork-exempt: yes

* eglot.el (eglot--sig-info): Call eglot--format-markup on signature
  documentation.

lisp/progmodes/eglot.el

index db4fbb4a7a559b0d37fd3d53bac162bb29e51fe7..2b51c2155bc49b9dd4566b9375fa9e68330e66d9 100644 (file)
@@ -1951,7 +1951,7 @@ is not active."
          (setq documentation (match-string 1 documentation))
          (unless (string-prefix-p (string-trim documentation) label)
            (goto-char (point-max))
-           (insert ": " documentation)))
+           (insert ": " (eglot--format-markup documentation))))
        (when (and (eql i active-sig) active-param
                   (< -1 active-param (length parameters)))
          (eglot--dbind ((ParameterInformation) label documentation)