We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d958ad0 commit 37ad2a4Copy full SHA for 37ad2a4
lua/astroui/status/hl.lua
@@ -59,7 +59,7 @@ end
59
---@return function # for setting hl property in a component
60
-- @usage local heirline_component = { provider = "Example Provider", hl = require("astroui.status").hl.file_icon("winbar") },
61
function M.file_icon(name)
62
- local hl_enabled = config.icon_highlights.file_icon[name]
+ local hl_enabled = vim.tbl_get(config, "icon_highlights", "file_icon", name)
63
return function(self)
64
if hl_enabled == true or (type(hl_enabled) == "function" and hl_enabled(self)) then
65
return M.filetype_color(self)
0 commit comments