Update tabline config
This commit is contained in:
parent
2af6c43bba
commit
6450791579
1 changed files with 10 additions and 8 deletions
|
@ -32,15 +32,17 @@
|
||||||
:hl (fn [self]
|
:hl (fn [self]
|
||||||
(let [visible (or self.is_active self.is_visible)]
|
(let [visible (or self.is_active self.is_visible)]
|
||||||
{:bold visible :italic visible}))})
|
{:bold visible :italic visible}))})
|
||||||
(set mod.file-flags [{:provider (fn [self]
|
(set mod.file-flags [{:condition #(api.nvim_buf_get_option $1.bufnr :modified)
|
||||||
(when (. vim :bo self.bufnr :modified)
|
:provider " "
|
||||||
" "))
|
|
||||||
:hl {:fg colors.yellow}}
|
:hl {:fg colors.yellow}}
|
||||||
{:provider (fn [self]
|
{:condition #(or (not (api.nvim_buf_get_option $1.bufnr
|
||||||
(when (or (not (. vim :bo self.bufnr
|
:modifiable))
|
||||||
:modifiable))
|
(api.nvim_buf_get_option $1.bufnr
|
||||||
(. vim :bo self.bufnr :readonly))
|
:readonly))
|
||||||
" "))
|
:provider (fn [self]
|
||||||
|
(if (= api.nvim_buf_get_option self.bufnr
|
||||||
|
:terminal)
|
||||||
|
" " " "))
|
||||||
:hl {:fg colors.orange}}])
|
:hl {:fg colors.orange}}])
|
||||||
(set mod.filename-block
|
(set mod.filename-block
|
||||||
(heirline-utils.insert mod.filename-block statusline.file-icon
|
(heirline-utils.insert mod.filename-block statusline.file-icon
|
||||||
|
|
Loading…
Reference in a new issue