1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-12-14 21:53:14 +03:00
kakoune/colors/greyscale.kak
Tim Allen dc07c649de Add standard DiagnosticError and DiagnosticWarning faces.
kak-lsp uses these faces to mark errors inside the buffer, instead of the Error
face which is much more jarring, and which does not have an associated warning
face. Since the :spell command marks errors inside the buffer, it's also updated
to use this new face.

Adding these faces to Kakoune makes it more likely that colorschemes will
automatically do the right thing when used with kak-lsp, and makes it possible
to use a subtle appearance (like curly underlines) for in-buffer errors while
keeping Kakoune errors bold and jarring as they should be.
2021-09-07 17:46:50 +10:00

75 lines
2.8 KiB
Plaintext

# Greyscale: monochromatic grey-based light colorscheme
evaluate-commands %sh{
grey_light_5="rgb:fafafa"
grey_light_4="rgb:f5f5f5"
grey_light_3="rgb:eeeeee"
grey_light_2="rgb:e0e0e0"
grey_light_1="rgb:bdbdbd"
grey="rgb:9e9e9e"
grey_dark_1="rgb:757575"
grey_dark_2="rgb:616161"
grey_dark_3="rgb:424242"
grey_dark_4="rgb:212121"
cat <<EOF
# For Code
set-face global keyword ${grey_dark_2}
set-face global attribute ${grey_dark_2}
set-face global type ${grey_dark_2}
set-face global string ${grey_dark_1}
set-face global value ${grey_dark_1}+b
set-face global meta ${grey_dark_1}
set-face global builtin ${grey}+b
set-face global module ${grey_dark_1}
set-face global comment ${grey}+i
set-face global documentation comment
set-face global function Default
set-face global operator Default
set-face global variable Default
# For markup
set-face global title ${grey_dark_2}+b
set-face global header ${grey_dark_2}
set-face global block ${grey_dark_1}
set-face global mono ${grey_dark_1}
set-face global link ${grey}+u
set-face global list Default
set-face global bullet +b
# Built-in faces
set-face global Default ${grey},${grey_light_2}
set-face global PrimarySelection ${grey_light_3},${grey_dark_4}+fg
set-face global SecondarySelection ${grey_light_2},${grey_dark_3}+fg
set-face global PrimaryCursor ${grey_light_3},${grey_dark_1}+fg
set-face global SecondaryCursor ${grey_light_3},${grey}+fg
set-face global PrimaryCursorEol ${grey_light_1},${grey_dark_2}+fg
set-face global SecondaryCursorEol ${grey_light_2},${grey_dark_1}+fg
set-face global StatusLine ${grey_dark_3},${grey_light_1}
set-face global StatusLineMode ${grey_light_2},${grey_dark_3}
set-face global StatusLineInfo ${grey_light_2},${grey_dark_2}
set-face global StatusLineValue ${grey_light_3},${grey_dark_2}+b
set-face global StatusCursor ${grey_light_3},${grey}
set-face global Prompt ${grey_light_2},${grey_dark_3}
set-face global MenuForeground ${grey_light_4},${grey}
set-face global MenuBackground ${grey_dark_2},${grey_light_3}
set-face global MenuInfo ${grey}+i
set-face global LineNumbers ${grey_light_5},${grey_dark_1}
set-face global LineNumbersWrapped ${grey_light_2},${grey_dark_2}+i
set-face global LineNumberCursor ${grey_light_2},${grey_dark_3}+b
set-face global MatchingChar ${grey_dark_4},${grey_light_1}
set-face global Whitespace ${grey_light_1}+f
set-face global WrapMarker ${grey_light_1}+f
set-face global Information ${grey_light_2},${grey_dark_2}
set-face global Error ${grey_light_2},${grey_dark_3}
set-face global DiagnosticError ${grey_dark_3}
set-face global DiagnosticWarning ${grey_dark_2}
set-face global BufferPadding ${grey_light_1}
EOF
}