Fix centaur-tabs hide which-key
This commit is contained in:
+20
-15
@@ -301,8 +301,7 @@ Places buffers as tabs in a bar at the top.
|
|||||||
helpful-mode
|
helpful-mode
|
||||||
neotree-mode
|
neotree-mode
|
||||||
occur-mode
|
occur-mode
|
||||||
shell-mode
|
shell-mode)
|
||||||
term-mode)
|
|
||||||
. centaur-tabs-local-mode)
|
. centaur-tabs-local-mode)
|
||||||
:config
|
:config
|
||||||
(centaur-tabs-mode))
|
(centaur-tabs-mode))
|
||||||
@@ -964,19 +963,25 @@ Functions that use package functionality.
|
|||||||
(defun centaur-tabs-hide-tab (buffer)
|
(defun centaur-tabs-hide-tab (buffer)
|
||||||
"Hide from the tab bar by BUFFER name."
|
"Hide from the tab bar by BUFFER name."
|
||||||
(let ((name (format "%s" buffer)))
|
(let ((name (format "%s" buffer)))
|
||||||
(string-match-p
|
(or
|
||||||
(concat "^\\*\\("
|
;; Current window is dedicated window
|
||||||
"e?shell\\|"
|
(window-dedicated-p (selected-window))
|
||||||
"Completions\\|"
|
|
||||||
"clangd\\|" ; lsp c/c++
|
;; Buffer name does match below blacklist
|
||||||
"Faces\\|"
|
(string-match-p
|
||||||
"Flycheck\\|"
|
(concat "^\\*\\("
|
||||||
"Help\\|"
|
"e?shell\\|"
|
||||||
"helpful\\|"
|
"Completions\\|"
|
||||||
"iph\\|" ; lsp php
|
"clangd\\|" ; lsp c/c++
|
||||||
"Occur"
|
"Faces\\|"
|
||||||
"\\).*")
|
"Flycheck\\|"
|
||||||
name)))
|
"Help\\|"
|
||||||
|
"helpful\\|"
|
||||||
|
"iph\\|" ; lsp php
|
||||||
|
"Occur"
|
||||||
|
"\\).*")
|
||||||
|
name)
|
||||||
|
)))
|
||||||
)
|
)
|
||||||
|
|
||||||
(defun dashboard-goto-bookmarks ()
|
(defun dashboard-goto-bookmarks ()
|
||||||
|
|||||||
Reference in New Issue
Block a user