We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
set_colorscheme
1 parent 50b811c commit d196e30Copy full SHA for d196e30
lua/astroui/init.lua
@@ -36,6 +36,14 @@ function M.setup(opts)
36
require("astroui.lazygit").setup()
37
end
38
39
+--- Set the configured colorscheme
40
+function M.set_colorscheme()
41
+ local colorscheme = M.config.colorscheme
42
+ if colorscheme and not pcall(vim.cmd.colorscheme, colorscheme) then
43
+ require("astrocore").notify(("Error setting up colorscheme: `%s`"):format(colorscheme), vim.log.levels.ERROR)
44
+ end
45
+end
46
+
47
--- Get highlight properties for a given highlight name
48
---@param name string The highlight group name
49
---@param fallback? table The fallback highlight properties
0 commit comments