From 9d8cad9548804a33c9a1968fe305e46e95c911ae Mon Sep 17 00:00:00 2001 From: bekaboo <18127878294@qq.com> Date: Sat, 26 Oct 2024 00:35:20 -0400 Subject: [PATCH] fix(sources-terminal): icon shown when `opts.icons.enable` is `false` --- lua/dropbar/sources/terminal.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lua/dropbar/sources/terminal.lua b/lua/dropbar/sources/terminal.lua index d912872b..2ee8712b 100644 --- a/lua/dropbar/sources/terminal.lua +++ b/lua/dropbar/sources/terminal.lua @@ -5,7 +5,8 @@ local configs = require('dropbar.configs') ---@return dropbar_symbol_opts_t local function buf_info(buf) return { - icon = configs.eval(configs.opts.sources.terminal.icon, buf), + icon = configs.opts.icons.enable + and configs.eval(configs.opts.sources.terminal.icon, buf), name = configs.eval(configs.opts.sources.terminal.name, buf), icon_hl = 'DropBarIconKindTerminal', name_hl = 'DropBarKindTerminal',