Fix overly dark catppuccin borders in neovim
Especially bad with lazygit
This commit is contained in:
@@ -2,7 +2,24 @@ return {
|
|||||||
{
|
{
|
||||||
"catppuccin/nvim",
|
"catppuccin/nvim",
|
||||||
name = "catppuccin",
|
name = "catppuccin",
|
||||||
|
lazy = false,
|
||||||
priority = 1000,
|
priority = 1000,
|
||||||
|
config = function()
|
||||||
|
require("catppuccin").setup()
|
||||||
|
|
||||||
|
local function brighten_borders()
|
||||||
|
for _, group in ipairs({ "FloatBorder", "WinSeparator" }) do
|
||||||
|
vim.api.nvim_set_hl(0, group, { fg = "#6c7086" })
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
vim.api.nvim_create_autocmd("ColorScheme", {
|
||||||
|
pattern = "catppuccin*",
|
||||||
|
callback = brighten_borders,
|
||||||
|
})
|
||||||
|
|
||||||
|
brighten_borders()
|
||||||
|
end,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"LazyVim/LazyVim",
|
"LazyVim/LazyVim",
|
||||||
|
|||||||
Reference in New Issue
Block a user