nvim-config/plugin/colorscheme.lua
2025-10-24 17:13:50 +03:00

30 lines
993 B
Lua

vim.pack.add({ 'https://github.com/triimd/invero.nvim' })
require('invero').setup({
highlights = function(c, tool)
c.bg_float = tool(152)
return {
ModeMsg = { fg = c.yellow, bg = c.none, bold = true },
WinSeparator = { fg = c.outline, bg = c.base },
StatusLine = { fg = c.outline, bg = c.base },
StatusLineNC = { fg = c.text, bg = c.base, bold = true },
TabLine = { fg = c.muted, bg = c.none },
TabLineSel = { fg = c.text, bg = c.none, bold = true },
TabLineFill = { fg = c.outline_light, bg = c.none },
Pmenu = { fg = c.text, bg = c.surface },
PmenuSel = { fg = c.text, bg = c.accent_light },
QuickFixLine = { fg = c.accent, bg = c.none, bold = true },
}
end,
})
vim.o.background = 'light'
vim.cmd.colorscheme('invero')
vim.api.nvim_create_user_command('ReloadInvero', function()
require('invero').invalidate_cache()
package.loaded['invero'] = nil
require('invero')
vim.cmd.colorscheme('invero')
end, {})