1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-12-28 22:22:41 +03:00
kakoune/colors/gruvbox.kak
Maxime Coste ec16969609 Do not reparse %sh{...} strings
Automatic reparsing of %sh{...}, while convenient in many cases,
can be surprising as well, and can lead to security problems:

'echo %sh{ printf "foo\necho bar" }' runs 'echo foo', then 'echo bar'.
we make this danger explicit, and we fix the 'nop %sh{...}' pattern.

To reparse %sh{...} strings, they can be passed to evaluate-commands,
which has been fixed to work in every cases where %sh{...} reparsing
was used..
2018-07-05 07:54:28 +10:00

76 lines
2.4 KiB
Plaintext

# gruvbox theme
evaluate-commands %sh{
gray="rgb:928374"
red="rgb:fb4934"
green="rgb:b8bb26"
yellow="rgb:fabd2f"
blue="rgb:83a598"
purple="rgb:d3869b"
aqua="rgb:8ec07c"
orange="rgb:fe8019"
bg="rgb:282828"
bg1="rgb:3c3836"
bg2="rgb:504945"
bg3="rgb:665c54"
bg4="rgb:7c6f64"
fg0="rgb:fbf1c7"
fg="rgb:ebdbb2"
fg2="rgb:d5c4a1"
fg3="rgb:bdae93"
fg4="rgb:a89984"
echo "
# Code highlighting
face global value ${purple}
face global type ${yellow}
face global variable ${blue}
face global module ${green}
face global function default
face global string ${green}
face global keyword ${red}
face global operator default
face global attribute ${orange}
face global comment ${gray}
face global meta ${aqua}
face global builtin default+b
# Markdown highlighting
face global title ${green}+b
face global header ${orange}
face global bold ${fg}+b
face global italic ${fg3}
face global mono ${fg4}
face global block default
face global link default
face global bullet default
face global list default
face global Default ${fg},${bg}
face global PrimarySelection ${fg},${blue}
face global SecondarySelection ${bg},${blue}
face global PrimaryCursor ${bg},${fg}
face global SecondaryCursor ${bg},${fg}
face global PrimaryCursorEol ${bg},${fg4}
face global SecondaryCursorEol ${bg},${fg4}
face global LineNumbers ${bg4}
face global LineNumberCursor ${yellow},${bg1}
face global MenuForeground ${bg2},${blue}
face global MenuBackground default,${bg2}
face global MenuInfo ${bg}
face global Information ${bg},${fg}
face global Error ${bg},${red}
face global StatusLine default
face global StatusLineMode ${yellow}+b
face global StatusLineInfo ${purple}
face global StatusLineValue ${red}
face global StatusCursor ${bg},${fg}
face global Prompt ${yellow}
face global MatchingChar default+b
face global BufferPadding ${bg2},${bg}
face global Whitespace ${bg2}
"
}