fix(window-select): unset winum-auto-setup-mode-line sooner

Its value is read when winum-mode is activated.
This commit is contained in:
Yu-Fu Fu 2023-02-23 01:09:32 -05:00 committed by GitHub
parent c8030df9ee
commit bd0728e9b3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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