Skip to content

Commit

Permalink
refactor!: leave colorscheme up to be set up later
Browse files Browse the repository at this point in the history
  • Loading branch information
mehalter committed Nov 14, 2024
1 parent 0d0925d commit 8d531d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
5 changes: 0 additions & 5 deletions lua/astroui/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,6 @@ function M.setup(opts)
end,
})

local colorscheme = M.config.colorscheme
if colorscheme and not pcall(vim.cmd.colorscheme, colorscheme) then
vim.notify(("Error setting up colorscheme: `%s`"):format(colorscheme), vim.log.levels.ERROR, { title = "AstroUI" })
end

require("astroui.lazygit").setup()
end

Expand Down
4 changes: 2 additions & 2 deletions lua/astroui/lazygit.lua
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ function M.setup()

vim.api.nvim_create_autocmd("User", {
pattern = "AstroColorScheme",
callback = M.update_config,
desc = "Update lazygit theme configuration when changing colorscheme",
group = vim.api.nvim_create_augroup("astroui_lazygit", { clear = true }),
desc = "Update lazygit theme configuration when changing colorscheme",
callback = M.update_config,
})
end

Expand Down

0 comments on commit 8d531d1

Please sign in to comment.