File tree 1 file changed +9
-1
lines changed
1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -98,6 +98,12 @@ This affects the position of the documentation when
98
98
(const :tag " At point" at-point))
99
99
:group 'lsp-ui-doc )
100
100
101
+ (defcustom lsp-ui-doc-side 'right
102
+ " Which side to display the doc."
103
+ :type '(choice (const :tag " Left" left)
104
+ (const :tag " Right" right))
105
+ :group 'lsp-ui-doc )
106
+
101
107
(defcustom lsp-ui-doc-alignment 'frame
102
108
" How to align the doc.
103
109
This only takes effect when `lsp-ui-doc-position' is `top or `bottom."
@@ -545,7 +551,9 @@ FRAME just below the symbol at point."
545
551
('window right)))
546
552
((left . top) (if (eq lsp-ui-doc-position 'at-point )
547
553
(lsp-ui-doc--mv-at-point width height left top)
548
- (cons (max (- frame-right width char-w) 10 )
554
+ (cons (pcase lsp-ui-doc-side
555
+ ('right (max (- frame-right width char-w) 10 ))
556
+ ('left 10 ))
549
557
(pcase lsp-ui-doc-position
550
558
('top (+ top char-w))
551
559
('bottom (- (lsp-ui-doc--line-height 'mode-line )
You can’t perform that action at this time.
0 commit comments