Files
gitea.nvim/lua/gitea/highlights.lua

58 lines
1.3 KiB
Lua

local M = {}
-- A small Dracula-like palette, adapt or extend if needed
local palette = {
bg = "#282A36",
fg = "#F8F8F2",
selection = "#44475A",
comment = "#6272A4",
cyan = "#8BE9FD",
green = "#50FA7B",
orange = "#FFB86C",
pink = "#FF79C6",
purple = "#BD93F9",
red = "#FF5555",
yellow = "#F1FA8C",
}
function M.setup()
-- Title of an issue or PR
vim.api.nvim_set_hl(0, "GiteaIssueTitle", {
fg = palette.pink,
bold = true,
})
-- Meta lines, e.g. status lines or extra info
vim.api.nvim_set_hl(0, "GiteaIssueMeta", {
fg = palette.comment,
italic = true,
})
-- Heading for each comment block
vim.api.nvim_set_hl(0, "GiteaCommentHeading", {
fg = palette.orange,
bold = true,
})
-- The actual comment body text
vim.api.nvim_set_hl(0, "GiteaCommentBody", {
fg = palette.fg,
bg = nil, -- or palette.bg if you want a background
})
-- Something for a user mention
vim.api.nvim_set_hl(0, "GiteaUser", {
fg = palette.cyan,
bold = true,
})
-- If you'd like comment lines in a faint color
vim.api.nvim_set_hl(0, "GiteaInlineComment", {
fg = palette.comment,
italic = true,
})
-- ...Add or tweak any other highlight groups you need...
end
return M