Skip to content

Commit

Permalink
fix(sources-terminal): icon shown when opts.icons.enable is false
Browse files Browse the repository at this point in the history
  • Loading branch information
bekaboo committed Oct 26, 2024
1 parent f6d246e commit 9d8cad9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lua/dropbar/sources/terminal.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 9d8cad9

Please sign in to comment.