update
This commit is contained in:
@@ -1,97 +1 @@
|
||||
-- colors/inStatusLinevero.lua
|
||||
|
||||
local palette = require("utils.palette")
|
||||
|
||||
-- reset highlights
|
||||
vim.cmd("hi clear")
|
||||
if vim.fn.exists("syntax_on") == 1 then
|
||||
vim.cmd("syntax reset")
|
||||
end
|
||||
|
||||
vim.opt.background = "light"
|
||||
vim.g.colors_name = "invero"
|
||||
|
||||
local colors = {
|
||||
-- neutrals
|
||||
base = palette[255], -- #eeeeee, white (bg)
|
||||
surface = palette[253], -- #dadada, light gray (cursor line bg)
|
||||
text = palette[238], -- #444444, dark gray (terminal fg)
|
||||
muted = palette[247], -- #9e9e9e, gray (comments, line numbers, dividers)
|
||||
accent = palette[27], -- #005fff, standard blue (cursor, dirs)
|
||||
accent_light = palette[153], -- #afd7ff light sky blue (selection bg)
|
||||
syntax = palette[60], -- #5f5f87, slate / gray-blue (syntax fg)
|
||||
red = palette[196], -- #ff0000, red
|
||||
orange = palette[166], -- #d75f00, orange
|
||||
orange_light = palette[180], -- #ffd7af, orange light
|
||||
yellow = palette[184], -- #ffd75f, yellow
|
||||
green = palette[34], -- #00af5f, green
|
||||
none = "NONE" -- no color / transparent
|
||||
}
|
||||
|
||||
local theme = {
|
||||
Normal = { fg = colors.text, bg = colors.none },
|
||||
LineNr = { fg = colors.muted },
|
||||
CursorLineNr = { fg = colors.accent, bold = true },
|
||||
CursorLine = { bg = colors.surface },
|
||||
Visual = { bg = colors.accent_light },
|
||||
Search = { fg = colors.orange },
|
||||
CurSearch = { fg = colors.base, bg = colors.orange, bold = true },
|
||||
IncSearch = { fg = colors.base, bg = colors.orange, bold = true },
|
||||
WinSeparator = { fg = colors.muted },
|
||||
StatusLine = { fg = colors.text, bg = colors.none },
|
||||
TabLine = { fg = colors.red },
|
||||
TabLineSel = { fg = colors.red, bold = true },
|
||||
TabLineFill = { bg = colors.red },
|
||||
|
||||
-- Telescope
|
||||
TelescopeBorder = { fg = colors.muted },
|
||||
TelescopePromptPrefix = { fg = colors.accent },
|
||||
TelescopeSelection = { bg = colors.surface },
|
||||
|
||||
-- Neo-tree
|
||||
NeoTreeDirectoryName = { fg = colors.accent },
|
||||
NeoTreeFileName = { fg = colors.text },
|
||||
-- NeoTreeNormal = { bg = colors.muted },
|
||||
-- NeoTreeNormalNC = { bg = colors.muted },
|
||||
}
|
||||
|
||||
-- apply theme groups
|
||||
for group, opts in pairs(theme) do
|
||||
vim.api.nvim_set_hl(0, group, opts)
|
||||
end
|
||||
|
||||
-- apply Tree-sitter defaults: all base4, comments special-case
|
||||
local highlights = vim.fn.getcompletion("@", "highlight")
|
||||
for _, hl in ipairs(highlights) do
|
||||
vim.api.nvim_set_hl(0, hl, { fg = colors.syntax })
|
||||
end
|
||||
|
||||
vim.api.nvim_set_hl(0, "@comment", { fg = colors.muted, italic = true })
|
||||
|
||||
vim.api.nvim_create_autocmd({ "WinEnter" }, {
|
||||
callback = function() vim.wo.cursorline = true end,
|
||||
})
|
||||
vim.api.nvim_create_autocmd({ "WinLeave" }, {
|
||||
callback = function() vim.wo.cursorline = false end,
|
||||
})
|
||||
|
||||
-- TEST >>
|
||||
|
||||
|
||||
vim.opt.laststatus = 3
|
||||
vim.opt.fillchars:append({ stl = '─', stlnc = '─' })
|
||||
|
||||
-- vim.o.statusline = " "
|
||||
-- vim.api.nvim_set_hl(0, "WinSeparator", { bg = colors.surface }) -- vertical bg
|
||||
-- vim.api.nvim_set_hl(0, "StatusLine", { bg = colors.surface }) -- horizontal bg
|
||||
-- vim.api.nvim_set_hl(0, "StatusLineNC", { bg = colors.surface }) -- horizontal bg
|
||||
|
||||
-- vim.api.nvim_create_autocmd("FileType", {
|
||||
-- pattern = "neo-tree",
|
||||
-- callback = function(ev)
|
||||
-- -- force your own winhighlight
|
||||
-- vim.api.nvim_win_set_option(ev.win, "winhighlight", "WinSeparator:WinSeparator")
|
||||
-- -- force fillchars
|
||||
-- vim.wo[ev.win].fillchars = "vert:│,horiz:─,horizup:┴,horizdown:┬,vertleft:├,vertright:┤,verthoriz:┼"
|
||||
-- end,
|
||||
-- })
|
||||
require("themes.invero").load()
|
||||
|
||||
Reference in New Issue
Block a user