nvim: Color OS tabline icon
This commit is contained in:
parent
e6fac2dee5
commit
dd9f312bdb
1 changed files with 8 additions and 4 deletions
|
@ -73,12 +73,16 @@
|
||||||
:hl (fn [self]
|
:hl (fn [self]
|
||||||
(if self.is_active {:fg colors.purple :bg bg-active :bold true}
|
(if self.is_active {:fg colors.purple :bg bg-active :bold true}
|
||||||
{:fg fg-inactive :bg bg-inactive :bold true}))})
|
{:fg fg-inactive :bg bg-inactive :bold true}))})
|
||||||
(set mod.os-indicator {:static {:uname (vim.loop.os_uname)
|
(set mod.os-indicator {:static {:uname (. (vim.loop.os_uname) :sysname)
|
||||||
:os {:Darwin "" :Linux ""}}
|
:os {:Darwin "" :Linux ""}
|
||||||
:hl {:fg colors.white :bg bg-active}
|
: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 " "}
|
1 {:provider " "}
|
||||||
2 {:provider (fn [self]
|
2 {:provider (fn [self]
|
||||||
(. self :os self.uname.sysname))}
|
(. self :os self.uname))}
|
||||||
3 {:provider " "}})
|
3 {:provider " "}})
|
||||||
;; Block
|
;; Block
|
||||||
(set mod.buffer-block [mod.active-indicator
|
(set mod.buffer-block [mod.active-indicator
|
||||||
|
|
Loading…
Reference in a new issue