We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent adaeaa2 commit 64640a8Copy full SHA for 64640a8
lua/astrotheme/lib/util.lua
@@ -31,9 +31,10 @@ function M.get_plugin_list(opts)
31
end
32
33
function M.get_hl_modules(highlights, path, modules)
34
+ local opts = require("astrotheme").config.style
35
for _, module in ipairs(modules) do
36
local file_avail, file = pcall(require, path .. "." .. module)
- if type(file) == "function" then file = file() end
37
+ if type(file) == "function" then file = file(opts) end
38
if file_avail then highlights = vim.tbl_deep_extend("force", file, highlights) end
39
40
return highlights
0 commit comments