fix(lazygit): dont error when setting ansi color fails. Fixes #2829

This commit is contained in:
Folke Lemaitre
2024-03-26 15:24:12 +01:00
parent 20efdd44da
commit a26ca7bf56

View File

@ -44,7 +44,8 @@ end
function M.update_theme()
-- LazyGit uses color 241 a lot, so also set it to a nice color
M.set_ansi_color(241, LazyVim.ui.color("Special") or "blue")
-- pcall, since some terminals don't like this
pcall(M.set_ansi_color, 241, LazyVim.ui.color("Special") or "blue")
local theme = {
activeBorderColor = { LazyVim.ui.color("MatchParen") or "orange", "bold" },