summaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
authorTommaso Negri <tommaso@hey.com>2025-12-05 17:48:46 +0100
committerTommaso Negri <tommaso@hey.com>2025-12-05 17:48:46 +0100
commit5980154c6ee276ddaf9fe369027b79e3d8d5913f (patch)
treee1bab0e136ae4b73ab4702750d154d7a96d5d2e9 /lua
parent1c8ecee21a85bf7423c9100d80372296d92eed6f (diff)
downloadvoltage-5980154c6ee276ddaf9fe369027b79e3d8d5913f.tar.gz
voltage-5980154c6ee276ddaf9fe369027b79e3d8d5913f.zip
Define standard editor colors
Diffstat (limited to 'lua')
-rw-r--r--lua/mycolortheme/highlights/editor.lua80
1 files changed, 80 insertions, 0 deletions
diff --git a/lua/mycolortheme/highlights/editor.lua b/lua/mycolortheme/highlights/editor.lua
new file mode 100644
index 0000000..b469e15
--- /dev/null
+++ b/lua/mycolortheme/highlights/editor.lua
@@ -0,0 +1,80 @@
+local M = {}
+
+function M.setup(colors, config)
+ local accent = colors[config.accent]
+
+ return {
+ Normal = { fg = colors.fg, bg = colors.bg },
+ NonText = { fg = colors.dimmed },
+ Conceal = { fg = colors.dimmed },
+
+ Cursor = { bg = accent.regular, fg = colors.inverted },
+ CursorLine = { bg = accent.darker },
+ CursorColumn = { bg = accent.darker },
+ ColorColumn = { bg = accent.dark },
+
+ Visual = { bg = accent.dark },
+ VisualNOS = { bg = accent.darker },
+
+ Directory = { fg = accent.regular },
+
+ SpecialKey = { fg = colors.dimmed },
+ EndOfBuffer = { fg = colors.dimmed },
+
+ DiffAdd = { bg = colors.green.dark, fg = colors.green.regular },
+ DiffDelete = { bg = colors.red.dark, fg = colors.red.regular },
+ DiffText = { bg = colors.yellow.regular, fg = colors.yellow.darker },
+ DiffChange = { bg = colors.yellow.dark, fg = colors.yellow.regular },
+
+ Search = { bg = accent.dark, fg = accent.regular },
+ IncSearch = { bg = accent.regular, fg = accent.darker },
+ MatchParen = { fg = accent.regular },
+
+ LineNr = { fg = colors.dimmed },
+ CursorLineNr = { fg = accent.regular },
+ SignColumn = {},
+
+ Folded = { fg = accent.light },
+ FoldColumn = { fg = accent.light },
+
+ WinBar = { bg = accent.dark, fg = accent.regular },
+ WinBarNC = { bg = accent.darker, fg = accent.regular },
+ WinSeparator = { fg = accent.light },
+ VertSplit = { fg = accent.light },
+
+ Pmenu = { fg = colors.fg },
+ PmenuExtra = { fg = colors.dimmed },
+ PmenuSel = { bg = accent.dark },
+ PmenuSbar = { bg = accent.regular },
+ PmenuThumb = { bg = accent.regular },
+ PmenuKind = { fg = accent.regular },
+ NormalFloat = {},
+ FloatBorder = { fg = accent.regular },
+ WildMenu = { bg = accent.dark },
+
+ ErrorMsg = { fg = colors.red.regular, bg = colors.red.dark },
+ WarningMsg = { bg = colors.yellow.dark, fg = colors.yellow.regular },
+ MoreMsg = { fg = colors.green.regular },
+ Question = { fg = colors.blue.regular },
+
+ StatusLine = { bg = accent.dark, fg = accent.regular },
+ StatusLineNC = { bg = accent.darker, fg = accent.regular },
+ TabLine = { bg = accent.dark, fg = accent.regular },
+ TabLineFill = { bg = accent.dark },
+ TabLineSel = { bg = accent.darker, fg = accent.regular },
+
+ SpellBad = { undercurl = true, sp = colors.red.light },
+ SpellCap = { undercurl = true, sp = colors.blue.light },
+ SpellLocal = { undercurl = true, sp = colors.green.light },
+ SpellRare = { undercurl = true, sp = colors.purple.light },
+
+ Title = { fg = accent.regular },
+
+ TermCursor = { bg = accent.regular, fg = colors.inverted },
+ TermCursorNC = { bg = accent.darker, fg = colors.dimmed },
+
+ QuickFixLine = { bg = accent.dark },
+ }
+end
+
+return M