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]
|
||||
(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
|
||||
|
|
Loading…
Reference in a new issue