From 6b8778aa124e5aeaa7ab29d18249e5aa94ad50b0 Mon Sep 17 00:00:00 2001 From: Niverton Date: Wed, 21 Feb 2024 16:58:47 +0100 Subject: [PATCH] Fixed heirline astrobox dependency --- lua/plugins/10-colorscheme.lua | 3 --- lua/plugins/40-heirline.lua | 4 +++- 2 files changed, 3 insertions(+), 4 deletions(-) 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(),