2020-11-14 20:53:21 +01:00
|
|
|
# {{@@ header() @@}}
|
|
|
|
# this is not in colors/ because it loads plugins
|
|
|
|
|
2021-02-22 03:20:24 +01:00
|
|
|
{%@@ set accent_fg = accent_fg .replace('#','rgb:') @@%}
|
|
|
|
{%@@ set accent_color = accent_color .replace('#','rgb:') @@%}
|
|
|
|
{%@@ set bg_light = color.bg_light.replace('#','rgb:') @@%}
|
|
|
|
{%@@ set bg_dark = color.bg_dark .replace('#','rgb:') @@%}
|
|
|
|
{%@@ set nontxt = color.nontxt .replace('#','rgb:') @@%}
|
2020-11-14 20:53:21 +01:00
|
|
|
|
2021-03-09 23:47:59 +01:00
|
|
|
{%@@ set orange = color.normal.orange .replace('#','rgb:') @@%}
|
|
|
|
{%@@ set brown = color.normal.brown .replace('#','rgb:') @@%}
|
|
|
|
|
2020-11-14 20:53:21 +01:00
|
|
|
face global crosshairs_line default,{{@@ bg_dark @@}}
|
2021-03-02 06:06:59 +01:00
|
|
|
face global crosshairs_column default+b
|
2020-11-14 20:53:21 +01:00
|
|
|
|
|
|
|
# For Code
|
2020-12-21 21:27:32 +01:00
|
|
|
face global value magenta
|
2020-11-14 20:53:21 +01:00
|
|
|
face global type yellow
|
2021-02-14 19:22:47 +01:00
|
|
|
face global variable blue
|
2021-03-09 23:47:59 +01:00
|
|
|
face global module {{@@ brown @@}}
|
|
|
|
face global function {{@@ orange @@}}
|
2020-11-14 20:53:21 +01:00
|
|
|
face global string green
|
2021-02-22 03:20:24 +01:00
|
|
|
face global keyword {{@@ accent_color @@}}
|
2020-11-14 20:53:21 +01:00
|
|
|
face global operator yellow
|
2021-03-09 23:47:59 +01:00
|
|
|
face global attribute cyan
|
2020-11-14 20:53:21 +01:00
|
|
|
face global comment {{@@ bg_light @@}}
|
|
|
|
face global documentation comment
|
2021-03-09 23:47:59 +01:00
|
|
|
face global meta function
|
2020-12-21 21:27:32 +01:00
|
|
|
face global builtin blue
|
2020-11-14 20:53:21 +01:00
|
|
|
|
|
|
|
# For markup
|
|
|
|
face global title blue
|
|
|
|
face global header cyan
|
|
|
|
face global mono green
|
|
|
|
face global block magenta
|
|
|
|
face global link cyan
|
|
|
|
face global bullet cyan
|
|
|
|
face global list yellow
|
|
|
|
|
|
|
|
# builtin faces
|
|
|
|
face global Default default,default
|
|
|
|
|
2021-02-22 03:20:24 +01:00
|
|
|
face global PrimaryCursor {{@@ accent_fg @@}},{{@@ accent_color @@}}+fg
|
2020-11-14 20:53:21 +01:00
|
|
|
face global PrimaryCursorEol PrimaryCursor
|
2021-03-18 03:56:44 +01:00
|
|
|
face global PrimarySelection default,{{@@ bg_light @@}}+f
|
2020-11-14 20:53:21 +01:00
|
|
|
|
|
|
|
face global SecondaryCursor default,default+rfg
|
|
|
|
face global SecondaryCursorEol SecondaryCursor
|
2021-03-13 16:53:45 +01:00
|
|
|
face global SecondarySelection PrimarySelection
|
|
|
|
|
|
|
|
hook global FocusIn .* %{
|
2021-03-18 03:56:44 +01:00
|
|
|
face window PrimaryCursor {{@@ accent_fg @@}},{{@@ accent_color @@}}+fg
|
|
|
|
face window PrimaryCursorEol PrimaryCursor
|
2021-03-13 16:53:45 +01:00
|
|
|
}
|
|
|
|
hook global FocusOut .* %{
|
2021-03-18 03:56:44 +01:00
|
|
|
face window PrimaryCursor {{@@ accent_fg @@}},{{@@ bg_light @@}}+fg
|
|
|
|
face window PrimaryCursorEol PrimaryCursor
|
2021-03-13 16:53:45 +01:00
|
|
|
}
|
2020-11-14 20:53:21 +01:00
|
|
|
|
2021-02-22 03:20:24 +01:00
|
|
|
face global MenuForeground {{@@ accent_fg @@}},{{@@ accent_color @@}}
|
2020-11-28 22:11:59 +01:00
|
|
|
face global MenuBackground default,{{@@ bg_dark @@}}
|
2020-11-14 20:53:21 +01:00
|
|
|
face global MenuInfo cyan
|
|
|
|
|
|
|
|
face global Information default,{{@@ bg_dark @@}}
|
2021-02-14 19:22:47 +01:00
|
|
|
face global Error default
|
2020-11-14 20:53:21 +01:00
|
|
|
|
|
|
|
face global StatusLine default,{{@@ nontxt @@}}
|
|
|
|
face global StatusLineMode green,{{@@ nontxt @@}}
|
|
|
|
face global StatusLineInfo default,{{@@ nontxt @@}}
|
|
|
|
face global StatusLineValue default,{{@@ nontxt @@}}
|
2021-02-22 03:20:24 +01:00
|
|
|
face global StatusCursor {{@@ accent_fg @@}},{{@@ accent_color @@}}
|
2020-11-14 20:53:21 +01:00
|
|
|
|
|
|
|
face global Prompt yellow,default
|
|
|
|
face global MatchingChar default,default+b
|
|
|
|
|
|
|
|
# Goodies
|
2021-02-14 19:22:47 +01:00
|
|
|
try %{add-highlighter global/ number-lines -relative -hlcursor}
|
2020-12-03 03:58:44 +01:00
|
|
|
face global LineNumbers {{@@ bg_light @@}},default
|
|
|
|
face global LineNumberCursor default,{{@@ bg_dark @@}}
|
2020-11-30 19:26:43 +01:00
|
|
|
face global LineNumbersWrapped red,default
|
2020-11-14 20:53:21 +01:00
|
|
|
|
2021-02-14 19:22:47 +01:00
|
|
|
try %{add-highlighter global/ show-whitespaces}
|
2020-11-14 20:53:21 +01:00
|
|
|
face global Whitespace {{@@ nontxt @@}},default+f
|
|
|
|
face global BufferPadding {{@@ nontxt @@}},default
|
2020-12-03 03:58:44 +01:00
|
|
|
## highlight trailing whitespace
|
2021-02-14 19:22:47 +01:00
|
|
|
# add-highlighter global/ regex '\h*$' 0:red,red+u
|
2020-11-14 20:53:21 +01:00
|
|
|
|
|
|
|
|
|
|
|
# Lsp
|
|
|
|
{%@@ for obj, col in {
|
|
|
|
'Error': 'red',
|
|
|
|
'Warning': 'yellow',
|
|
|
|
'Hint': 'blue',
|
|
|
|
}.items() @@%}
|
|
|
|
face global HighlightDiagnostic{{@@ obj @@}} {{@@ col @@}},default+bu
|
|
|
|
face global Diagnostic{{@@ obj @@}} {{@@ col @@}},default+b
|
|
|
|
face global TextDiagnostic{{@@ obj @@}} {{@@ col @@}},default+b
|
2021-02-21 05:33:59 +01:00
|
|
|
face global InlayDiagnostic{{@@ obj @@}} {{@@ col @@}},default+br
|
2020-11-14 20:53:21 +01:00
|
|
|
{%@@ endfor @@%}
|
|
|
|
|
2021-02-21 05:33:59 +01:00
|
|
|
face global Reference default+bu
|
2021-02-14 19:22:47 +01:00
|
|
|
face global InlayHint {{@@ bg_light @@}}
|
2020-11-14 20:53:21 +01:00
|
|
|
|