Neotree window number is now always 0

This other windows keep their number
This commit is contained in:
syl20bnr 2014-12-26 16:51:08 -05:00
parent 1a84a5a983
commit 0568a7b2c7

View file

@ -1624,7 +1624,7 @@ determine the state to enable when escaping from the insert state.")
(cdr powerline-default-separator-dir))))
(lhs (append
;; window number
(if window-numberingp
(if (and window-numberingp (spacemacs/window-number))
(list (powerline-raw (spacemacs/window-number) state-face))
(list (powerline-raw (evil-state-property evil-state :tag t) state-face)))
(if (and active anzu--state)
@ -2000,20 +2000,26 @@ determine the state to enable when escaping from the insert state.")
(defun spacemacs/window-number ()
"Return the number of the window."
(let ((num (window-numbering-get-number-string)))
(let* ((num (window-numbering-get-number))
(str (if num (int-to-string num))))
(cond
((not dotspacemacs-mode-line-unicode-symbols) (concat " " num " "))
((equal num "1") "")
((equal num "2") "")
((equal num "3") "")
((equal num "4") "")
((equal num "5") "")
((equal num "6") "")
((equal num "7") "")
((equal num "8") "")
((equal num "9") "")
((equal num "0") "")
(t (concat " " num " ")))))))
((not dotspacemacs-mode-line-unicode-symbols) (concat " " str " "))
((equal str "1") "")
((equal str "2") "")
((equal str "3") "")
((equal str "4") "")
((equal str "5") "")
((equal str "6") "")
((equal str "7") "")
((equal str "8") "")
((equal str "9") "")
((equal str "0") ""))))
(defun spacemacs//window-numbering-assign ()
"Custom number assignment for special buffers."
(when (equal (buffer-name) " *NeoTree*") 0))
(setq window-numbering-assign-func ''spacemacs//window-numbering-assign)
))
(defun spacemacs/init-yasnippet ()
(use-package yasnippet