Skip to content

Commit 2555204

Browse files
committed
[lsp-ui-sideline] Handle indent-guide-mode #520
And more globally overlays with a before-string prop
1 parent 13d1569 commit 2555204

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lsp-ui-sideline.el

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,7 @@ is set to t."
364364
(overlay-put ov 'bounds bounds)
365365
(overlay-put ov 'current current)
366366
(overlay-put ov 'after-string final-string)
367+
(overlay-put ov 'before-string " ")
367368
(overlay-put ov 'window (get-buffer-window))
368369
(overlay-put ov 'kind 'info)
369370
(overlay-put ov 'position (car pos-ov))
@@ -434,6 +435,7 @@ Push sideline overlays on `lsp-ui-sideline--ovs'."
434435
(setq offset (1+ (car (cdr pos-ov))))
435436
(overlay-put ov 'after-string string)
436437
(overlay-put ov 'kind 'diagnostics)
438+
(overlay-put ov 'before-string " ")
437439
(overlay-put ov 'position (car pos-ov))
438440
(push ov lsp-ui-sideline--ovs))))))))
439441

@@ -497,6 +499,7 @@ Push sideline overlays on `lsp-ui-sideline--ovs'."
497499
(ov (and pos-ov (make-overlay (car pos-ov) (car pos-ov)))))
498500
(when pos-ov
499501
(overlay-put ov 'after-string string)
502+
(overlay-put ov 'before-string " ")
500503
(overlay-put ov 'kind 'actions)
501504
(overlay-put ov 'position (car pos-ov))
502505
(push ov lsp-ui-sideline--ovs))))))

0 commit comments

Comments
 (0)