feat(ui): made all highlight groups and icons configurable

This commit is contained in:
Folke Lemaitre 2022-12-26 10:24:47 +01:00
parent 3d22c496da
commit 0ea771bd70
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
5 changed files with 108 additions and 78 deletions

View file

@ -1,28 +1,34 @@
local M = {}
M.colors = {
Error = "ErrorMsg", -- task errors
H1 = "IncSearch",
H2 = "Bold",
Muted = "Comment",
H1 = "IncSearch", -- home button
H2 = "Bold", -- titles
Comment = "Comment",
Normal = "NormalFloat",
Commit = "@variable.builtin",
Key = "Conceal",
Value = "@string",
NoCond = "DiagnosticError",
Commit = "@variable.builtin", -- commit ref
CommitIssue = "Number",
CommitType = "Title", -- conventional commit type
CommitScope = "Italic", -- conventional commit scope
Prop = "Conceal", -- property
Value = "@string", -- value of a property
NoCond = "DiagnosticWarn", -- unloaded icon for a plugin where `cond()` was false
ProgressDone = "Constant", -- progress bar done
ProgressTodo = "LineNr", -- progress bar todo
Special = "@punctuation.special",
HandlerRuntime = "@macro",
HandlerPlugin = "Special",
HandlerEvent = "Constant",
HandlerKeys = "Statement",
HandlerStart = "@field",
HandlerSource = "Character",
HandlerFt = "Character",
HandlerCmd = "Operator",
ReasonRuntime = "@macro",
ReasonPlugin = "Special",
ReasonEvent = "Constant",
ReasonKeys = "Statement",
ReasonStart = "@field",
ReasonSource = "Character",
ReasonFt = "Character",
ReasonCmd = "Operator",
Button = "CursorLine",
ButtonActive = "Visual",
TaskOutput = "MsgArea", -- task output
TaskError = "ErrorMsg", -- task errors
Dir = "@text.reference", -- directory
Url = "@text.reference", -- url
}
M.did_setup = false