tweak(window-select): winum-auto-setup-mode-line = nil

Leave it to modeline modules, plugins, and/or the user to support this
plugin, rather than impose winum's (rather destructive) side-effects on
them all.
This commit is contained in:
Henrik Lissner 2022-10-22 21:33:13 +02:00
parent a1f8063485
commit c2f5e41722
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

View file

@ -26,6 +26,9 @@
:after-call doom-switch-window-hook
:config
(winum-mode +1)
;; winum modifies `mode-line-format' in a destructive manner. I'd rather leave
;; it to modeline plugins (or the user) to add this if they want it.
(setq winum-auto-setup-mode-line nil)
(map! :map evil-window-map
"0" #'winum-select-window-0-or-10
"1" #'winum-select-window-1