Summary Files Commits Branches @commit @diff @stats
path: root / lua
diff options
context:
space:
mode:
1 files changed, 6 insertions, 3 deletions
-rw-r--r--lua/plugins/heirline.lua9
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" })