update
This commit is contained in:
parent
8687a1cf31
commit
efa84c2ee3
@ -31,9 +31,9 @@ vim.opt.textwidth = 100
|
|||||||
vim.opt.colorcolumn = '+0'
|
vim.opt.colorcolumn = '+0'
|
||||||
|
|
||||||
vim.opt.signcolumn = 'no'
|
vim.opt.signcolumn = 'no'
|
||||||
vim.opt.number = true
|
vim.opt.number = false
|
||||||
vim.opt.relativenumber = true
|
vim.opt.relativenumber = false
|
||||||
vim.opt.cursorline = true
|
vim.opt.cursorline = false
|
||||||
vim.opt.ruler = false
|
vim.opt.ruler = false
|
||||||
vim.opt.winborder = 'rounded'
|
vim.opt.winborder = 'rounded'
|
||||||
vim.opt.guicursor = 'n-v-i-c:block'
|
vim.opt.guicursor = 'n-v-i-c:block'
|
||||||
|
|||||||
@ -1,18 +1,20 @@
|
|||||||
local function load_theme()
|
local M = {}
|
||||||
|
function M.load_theme()
|
||||||
require('invero').setup({
|
require('invero').setup({
|
||||||
highlights = function(c, tool)
|
highlights = function(c, tool)
|
||||||
c.bg_float = tool(152)
|
c.bg_float = tool(152)
|
||||||
return {
|
return {
|
||||||
ModeMsg = { fg = c.yellow, bg = c.none, bold = true },
|
ModeMsg = { fg = c.yellow, bg = c.none, bold = true },
|
||||||
WinSeparator = { fg = c.outline, bg = c.base },
|
WinSeparator = { fg = c.outline, bg = c.base },
|
||||||
StatusLine = { fg = c.outline, bg = c.base },
|
StatusLine = { fg = c.outline, bg = c.base, bold = false },
|
||||||
StatusLineNC = { fg = c.text, bg = c.base, bold = true },
|
StatusLineNC = { fg = c.text, bg = c.base, bold = false },
|
||||||
TabLine = { fg = c.muted, bg = c.none },
|
TabLine = { fg = c.muted, bg = c.black },
|
||||||
TabLineSel = { fg = c.text, bg = c.none, bold = true },
|
TabLineSel = { fg = c.base, bg = c.black, bold = true },
|
||||||
TabLineFill = { fg = c.outline_light, bg = c.none },
|
TabLineFill = { bg = c.black },
|
||||||
Pmenu = { fg = c.text, bg = c.surface },
|
Pmenu = { fg = c.text, bg = c.surface },
|
||||||
PmenuSel = { fg = c.text, bg = c.accent_light },
|
PmenuSel = { fg = c.text, bg = c.accent_light },
|
||||||
QuickFixLine = { fg = c.accent, bg = c.none, bold = true },
|
QuickFixLine = { fg = c.accent, bg = c.none, bold = true },
|
||||||
|
Special = { fg = c.syntax, bg = c.none, bold = false, italic = true },
|
||||||
['@lsp'] = { fg = c.syntax, bg = c.none },
|
['@lsp'] = { fg = c.syntax, bg = c.none },
|
||||||
['@variable'] = { fg = c.syntax, bg = c.none },
|
['@variable'] = { fg = c.syntax, bg = c.none },
|
||||||
}
|
}
|
||||||
@ -24,10 +26,15 @@ local function load_theme()
|
|||||||
end
|
end
|
||||||
|
|
||||||
vim.api.nvim_create_user_command('ReloadInvero', function()
|
vim.api.nvim_create_user_command('ReloadInvero', function()
|
||||||
|
package.loaded['invero'] = nil
|
||||||
|
package.loaded['modules.theme'] = nil
|
||||||
|
|
||||||
require('invero').invalidate_cache()
|
require('invero').invalidate_cache()
|
||||||
load_theme()
|
require('modules.theme').load_theme()
|
||||||
end, {})
|
end, {})
|
||||||
|
|
||||||
load_theme()
|
M.load_theme()
|
||||||
|
|
||||||
require('plugins.tabline').setup()
|
require('plugins.tabline').setup()
|
||||||
|
|
||||||
|
return M
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user