]> git.eshelyaron.com Git - emacs.git/commitdiff
Eglot: pay better attention to hints' paddingLeft/Right (bug#61924)
authorJoão Távora <joaotavora@gmail.com>
Fri, 3 Mar 2023 13:13:35 +0000 (13:13 +0000)
committerJoão Távora <joaotavora@gmail.com>
Fri, 3 Mar 2023 13:14:34 +0000 (13:14 +0000)
* lisp/progmodes/eglot.el (eglot--update-hints-1): Consider
:json-false, which is a non-nil value.

lisp/icomplete.el
lisp/progmodes/eglot.el

index 0adb0e5afebe37e427affb2d99fbf189b682cce0..4f39afb69f4c3dbbd976f4081f55406e9497d7f2 100644 (file)
@@ -661,6 +661,7 @@ Usually run by inclusion in `minibuffer-setup-hook'."
   (setq-local icomplete-hide-common-prefix nil
               ;; Ask `icomplete-completions' to return enough completions candidates.
               icomplete-prospects-height 25
+              truncate-lines t
               redisplay-adhoc-scroll-in-resize-mini-windows nil))
 
 ;;;###autoload
index b17370ebf8beebb384ed53e5dcd48ceded836851..a11ec0e4bbdd21a118205ffd5a5f79f9df8dc713 100644 (file)
@@ -3603,8 +3603,10 @@ If NOERROR, return predicate, else erroring function."
             (goto-char (eglot--lsp-position-to-point position))
             (when (or (> (point) to) (< (point) from)) (cl-return))
             (let ((left-pad (and paddingLeft
+                                 (not (eq paddingLeft :json-false))
                                  (not (memq (char-before) '(32 9))) " "))
                   (right-pad (and paddingRight
+                                  (not (eq paddingRight :json-false))
                                   (not (memq (char-after) '(32 9))) " ")))
               (cl-flet
                   ((do-it (text lpad rpad)