File tree 2 files changed +8
-7
lines changed
2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -111,6 +111,7 @@ Customization:
111
111
- ` lsp-ui-imenu-kind-position ` place to show entries kind
112
112
- ` lsp-ui-imenu-buffer-position ` place to show the buffer window
113
113
- ` lsp-ui-imenu-window-width ` set window width
114
+ - ` lsp-ui-imenu-window-fix-width ` when non-nil, the window will not be resizable (eg. unaffected by ` balance-windows ` )
114
115
- ` lsp-ui-imenu--custom-mode-line-format ` mode line format
115
116
- ` lsp-ui-imenu-auto-refresh ` auto refresh when necessary
116
117
- ` lsp-ui-imenu-refresh-delay ` delay to refresh imenu
Original file line number Diff line number Diff line change 62
62
(const :tag " Right" right))
63
63
:group 'lsp-ui-imenu )
64
64
65
- (defcustom lsp-ui-imenu-persistent-buffer nil
66
- " If non-nil, the `lsp-ui-imenu' buffer will permanently maintain its size.
67
- ie. it will not be affected by `balance-windows' etc."
68
- :type 'boolean
69
- :group 'lsp-ui-imenu )
70
-
71
65
(defcustom lsp-ui-imenu-colors '(" deep sky blue" " green3" )
72
66
" Color list to cycle through for entry groups."
73
67
:type '(repeat color)
@@ -78,6 +72,12 @@ ie. it will not be affected by `balance-windows' etc."
78
72
:type 'number
79
73
:group 'lsp-ui-imenu )
80
74
75
+ (defcustom lsp-ui-imenu-window-fix-width nil
76
+ " If non-nil, the `lsp-ui-imenu' window will permanently maintain its width.
77
+ ie. it will not be affected by `balance-windows' etc."
78
+ :type 'boolean
79
+ :group 'lsp-ui-imenu )
80
+
81
81
(defcustom lsp-ui-imenu-auto-refresh nil
82
82
" Automatically refresh imenu when certain conditions meet."
83
83
:type '(choice (const :tag " Enable" t )
@@ -386,7 +386,7 @@ ITEMS are used when the kind position is 'left."
386
386
387
387
(define-derived-mode lsp-ui-imenu-mode special-mode " lsp-ui-imenu"
388
388
" Mode showing imenu entries."
389
- (setq window-size-fixed (if lsp-ui-imenu-persistent-buffer 'width nil )))
389
+ (setq window-size-fixed (if lsp-ui-imenu-window-fix-width 'width nil )))
390
390
391
391
(defun lsp-ui-imenu--refresh ()
392
392
" Safe refresh imenu content."
You can’t perform that action at this time.
0 commit comments