Skip to content

Commit

Permalink
segments: k8s: hide when narrow screen
Browse files Browse the repository at this point in the history
Uses `doom-modeline--segment-visible` to additionally hide the Kubernetes
segment in narrow-modeline settings, unless user added it to
`always-visible-segments`.
  • Loading branch information
jinnovation authored and seagle0128 committed Apr 14, 2024
1 parent 1d0942d commit abd0fe9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doom-modeline-segments.el
Original file line number Diff line number Diff line change
Expand Up @@ -3173,7 +3173,7 @@ Otherwise, it displays the message like `message' would."
;;

(doom-modeline-def-segment k8s
(when (and (bound-and-true-p kele-mode) (doom-modeline--active))
(when (and (bound-and-true-p kele-mode) (doom-modeline--segment-visible 'k8s))
(let* ((ctx (kele-current-context-name :wait nil))
(ns (kele-current-namespace :wait nil))
(icon (doom-modeline-icon 'mdicon "nf-md-kubernetes" "K8s:" "K8s:"))
Expand Down

0 comments on commit abd0fe9

Please sign in to comment.