This repository has been archived on 2024-04-07. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles/dotfiles/kak/colors.kak

90 lines
2.8 KiB
Text
Raw Normal View History

2020-11-14 20:53:21 +01:00
# {{@@ header() @@}}
# this is not in colors/ because it loads plugins
{%@@ set accent = "rgb:%s" % accent_color.replace('#','') @@%}
{%@@ set bg_light = "rgb:%s" % color.bg_light.replace('#','') @@%}
{%@@ set bg_dark = "rgb:%s" % color.bg_dark.replace('#','') @@%}
{%@@ set nontxt = "rgb:%s" % color.nontxt.replace('#','') @@%}
cursorline
face global crosshairs_line default,{{@@ bg_dark @@}}
# 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
face global variable default
2020-12-21 21:27:32 +01:00
face global module variable
2020-11-14 20:53:21 +01:00
face global function cyan
face global string green
face global keyword {{@@ accent @@}}
face global operator yellow
face global attribute green+b
face global comment {{@@ bg_light @@}}
face global documentation comment
face global meta magenta
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
face global PrimaryCursor default,{{@@ accent @@}}+fg
face global PrimaryCursorEol PrimaryCursor
2020-12-28 18:25:06 +01:00
face global PrimarySelection default,{{@@ bg_light @@}}
2020-11-14 20:53:21 +01:00
face global SecondaryCursor default,default+rfg
face global SecondaryCursorEol SecondaryCursor
2020-12-28 18:25:06 +01:00
face global SecondarySelection default,{{@@ bg_light @@}}
2020-11-14 20:53:21 +01:00
2020-11-28 22:11:59 +01:00
face global MenuForeground default,{{@@ accent @@}}
face global MenuBackground default,{{@@ bg_dark @@}}
2020-11-14 20:53:21 +01:00
face global MenuInfo cyan
face global Information default,{{@@ bg_dark @@}}
face global Error white,default
face global StatusLine default,{{@@ nontxt @@}}
face global StatusLineMode green,{{@@ nontxt @@}}
face global StatusLineInfo default,{{@@ nontxt @@}}
face global StatusLineValue default,{{@@ nontxt @@}}
face global StatusCursor default,{{@@ accent @@}}
face global Prompt yellow,default
face global MatchingChar default,default+b
# Goodies
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
add-highlighter global/ show-whitespaces
face global Whitespace {{@@ nontxt @@}},default+f
face global BufferPadding {{@@ nontxt @@}},default
2020-12-03 03:58:44 +01:00
## highlight trailing whitespace
# add-highlighter global/ regex '\h*$' 0:red,red+g
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
face global InlayDiagnostic{{@@ obj @@}} {{@@ col @@}},default+bu
{%@@ endfor @@%}
face global Reference yellow,default+b