Skip to content

Commit 706439a

Browse files
committed
refactor!: leave colorscheme up to be set up later
1 parent 2413f95 commit 706439a

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

lua/astroui/init.lua

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,6 @@ function M.setup(opts)
3333
end,
3434
})
3535

36-
local colorscheme = M.config.colorscheme
37-
if colorscheme and not pcall(vim.cmd.colorscheme, colorscheme) then
38-
vim.notify(("Error setting up colorscheme: `%s`"):format(colorscheme), vim.log.levels.ERROR, { title = "AstroUI" })
39-
end
40-
4136
require("astroui.lazygit").setup()
4237
end
4338

lua/astroui/lazygit.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@ function M.setup()
6868

6969
vim.api.nvim_create_autocmd("User", {
7070
pattern = "AstroColorScheme",
71-
callback = M.update_config,
72-
desc = "Update lazygit theme configuration when changing colorscheme",
7371
group = vim.api.nvim_create_augroup("astroui_lazygit", { clear = true }),
72+
desc = "Update lazygit theme configuration when changing colorscheme",
73+
callback = M.update_config,
7474
})
7575
end
7676

0 commit comments

Comments
 (0)