File tree 2 files changed +12
-3
lines changed
2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -94,8 +94,9 @@ Focus into lsp-ui-doc-frame
94
94
95
95
Customization:
96
96
97
- - ` lsp-ui-doc-enable ` enable lsp-ui-doc
98
- - ` lsp-ui-doc-position ` Where to display the doc
97
+ - ` lsp-ui-doc-enable ` Enable lsp-ui-doc
98
+ - ` lsp-ui-doc-position ` Where to display the doc (top, bottom or at-point)
99
+ - ` lsp-ui-doc-side ` Where to display the doc (left or right)
99
100
- ` lsp-ui-doc-delay ` Number of seconds before showing the doc
100
101
- ` lsp-ui-doc-show-with-cursor ` When non-nil, move the cursor over a symbol to show the doc
101
102
- ` lsp-ui-doc-show-with-mouse ` When non-nil, move the mouse pointer over a symbol to show the doc
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