diff options
| Commit | 082efd84bbcc2344ec82fd339c9a8addbae49fbe (patch) | |
|---|---|---|
| Author | 2024-08-06 09:51:01 +0300 | |
| Committer | 2024-08-06 09:51:09 +0300 | |
| Files | 053b5b7d02cd906772469c63093a3d0ba21337ea /lua/plugins/heirline.lua | |
| anderson-082efd84bbcc2344ec82fd339c9a8addbae49fbe.tar anderson-082efd84bbcc2344ec82fd339c9a8addbae49fbe.tar.gz anderson-082efd84bbcc2344ec82fd339c9a8addbae49fbe.zip | ||
| Parent | a15f7df4b576acd5a91195471b2643c9a422d4a3 (diff) | |
fix(heirline): Certain elements of tabline not being updated on specific events
1 files changed, 6 insertions, 3 deletions
| -rw-r--r-- | lua/plugins/heirline.lua | 9 |
diff --git a/lua/plugins/heirline.lua b/lua/plugins/heirline.lua index 4e30553..00e0ca7 100644 --- a/lua/plugins/heirline.lua +++ b/lua/plugins/heirline.lua @@ -1,6 +1,7 @@ return { "rebelot/heirline.nvim", lazy = false, + event = "UiEnter", opts = function() local utils = require("heirline.utils") local conditions = require("heirline.conditions") @@ -24,7 +25,7 @@ return { } local StatusLineColor = utils.get_highlight("StatusLine") - function surround(delimiters, component) + function surround(delimiters, component, additional_update) return { init = function(self) local highlight @@ -53,7 +54,7 @@ return { hl = function(self) return self.inverse end, }, - update = { "BufEnter", "BufLeave" }, + update = { "BufEnter", "BufLeave", additional_update }, } end @@ -76,6 +77,7 @@ return { if not vim.bo.modifiable then return prepend.."" end end, }, + update = "BufModifiedSet", } local FileType = { @@ -89,6 +91,7 @@ return { end return icon..vim.bo.filetype end, + update = "FileType", } local Filename = { provider = "%f", } @@ -125,7 +128,7 @@ return { return "ModeNormal" end, - }) + }, "ModeChanged") vim.cmd.highlight({ "RowAndColumn", "ctermfg=238", "ctermbg=244" }) |
