1
0
Fork 0

nvim: Color OS tabline icon

This commit is contained in:
Daniel Kempkens 2022-08-29 22:54:43 +02:00
parent e6fac2dee5
commit dd9f312bdb
Signed by: daniel
SSH key fingerprint: SHA256:Ks/MyhQYcPRQiwMKLAKquWCdCPe3JXlb1WttgnAoSeM

View file

@ -73,12 +73,16 @@
:hl (fn [self]
(if self.is_active {:fg colors.purple :bg bg-active :bold true}
{:fg fg-inactive :bg bg-inactive :bold true}))})
(set mod.os-indicator {:static {:uname (vim.loop.os_uname)
:os {:Darwin "" :Linux ""}}
:hl {:fg colors.white :bg bg-active}
(set mod.os-indicator {:static {:uname (. (vim.loop.os_uname) :sysname)
:os {:Darwin "" :Linux ""}
:os-color {:Darwin colors.white
:Linux "#7ebae4"}}
:hl (fn [self]
(let [fg-color (. self :os-color self.uname)]
{:fg fg-color :bg bg-active}))
1 {:provider " "}
2 {:provider (fn [self]
(. self :os self.uname.sysname))}
(. self :os self.uname))}
3 {:provider " "}})
;; Block
(set mod.buffer-block [mod.active-indicator