diff --git a/lua/plugins/10-colorscheme.lua b/lua/plugins/10-colorscheme.lua index 64e1500..3e85f7b 100644 --- a/lua/plugins/10-colorscheme.lua +++ b/lua/plugins/10-colorscheme.lua @@ -5,9 +5,6 @@ return { dependencies = { "astrobox" }, opts = { colorscheme = "astrobox", - status = { - colors = require("astrobox.heirline").setup_colors, - }, }, }, { diff --git a/lua/plugins/40-heirline.lua b/lua/plugins/40-heirline.lua index 7547734..5f16329 100644 --- a/lua/plugins/40-heirline.lua +++ b/lua/plugins/40-heirline.lua @@ -8,6 +8,7 @@ return { buffer_active = { bold = true, italic = false }, tab_active = { bold = true }, }, + colors = function(colors) return require("astrobox.heirline").setup_colors(colors) end, }, }, }, @@ -55,6 +56,7 @@ return { init = function(self) self.bufnr = vim.api.nvim_get_current_buf() end, fallthrough = false, { + -- Display file path when window is not active condition = function() return not status.condition.is_active() end, { -- Set display priority to hide when component is too big to fit @@ -87,7 +89,7 @@ return { filetype = false, hl = status.hl.get_attributes("winbarnc", true), surround = false, - update = "BufEnter", + update = { "BufEnter", "BufWrite" }, }), }, comp.breadcrumbs(),