Function: doom-modeline-segment--k8s
doom-modeline-segment--k8s is a natively compiled function defined in
doom-modeline-segments.el.
Signature
(doom-modeline-segment--k8s)
Documentation
k8s modeline segment
Source Code
;; Defined in /nix/store/1lcicrdd2r4b8rkc91nnn74ymk1jl6yd-emacs-packages-deps/share/emacs/site-lisp/elpa/doom-modeline-20260928.1632/doom-modeline-segments.el
;;
;; Kubernetes
;;
(doom-modeline-def-segment k8s
(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:"))
(sep (doom-modeline-spc))
(help-msg (let ((msgs (list (format "Current context: %s" ctx))))
(when ns
(setq msgs (append msgs (list (format "Current namespace: %s" ns)))))
(string-join msgs "\n"))))
(propertize (concat
icon sep ctx
(when (and doom-modeline-k8s-show-namespace ns) (format "(%s)" ns))
sep)
'local-map (let ((map (make-sparse-keymap)))
(define-key map [mode-line down-mouse-1] kele-menu-map)
map)
'mouse-face 'doom-modeline-highlight
'help-echo help-msg))))