z_mirror/kak-tokyo-night
git clone https://git.raiguard.me/z_mirror/kak-tokyo-night
b49155d
tree-sitter
1# COLORS 2 3declare-option str fg "c0caf5" 4declare-option str bg "1a1b26" 5declare-option str subbg "1f2335" 6 7declare-option str red "f7768e" 8declare-option str green "9ece6a" 9declare-option str yellow "e0af68" 10declare-option str orange "ff9e64" 11declare-option str blue "7aa2f7" 12declare-option str magenta "bb9af7" 13declare-option str cyan "7dcfff" 14 15declare-option str comment "565f89" 16 17declare-option str selectionalpha "35" 18 19# Menus do not support transparency, so we must hardcode the selection + sub bg colors 20declare-option str menuselection "394667" 21 22# CODE 23 24set-face global value "rgb:%opt{orange}" 25set-face global type "rgb:%opt{yellow}" 26set-face global variable "rgb:%opt{fg}" 27set-face global module "rgb:%opt{yellow}" 28set-face global function "rgb:%opt{blue}" 29set-face global string "rgb:%opt{green}" 30set-face global keyword "rgb:%opt{magenta}" 31set-face global operator "rgb:%opt{red}" 32set-face global attribute "rgb:%opt{cyan}" 33set-face global comment "rgb:%opt{comment}" 34set-face global documentation "rgb:%opt{comment}" 35set-face global meta "rgb:%opt{cyan}" 36set-face global builtin "rgb:%opt{yellow}" 37 38# MARKUP 39 40set-face global title "rgb:%opt{orange}" 41set-face global header "rgb:%opt{green}" 42set-face global mono "rgb:%opt{cyan}" 43set-face global block "rgb:%opt{magenta}" 44set-face global link "rgb:%opt{blue}" 45set-face global bullet "rgb:%opt{yellow}" 46set-face global list "rgb:%opt{fg}" 47 48# BUILTIN 49 50set-face global Default "rgb:%opt{fg},rgb:%opt{bg}" 51set-face global PrimarySelection "default,rgba:%opt{blue}%opt{selectionalpha}" 52set-face global SecondarySelection "default,rgba:%opt{green}%opt{selectionalpha}" 53set-face global PrimaryCursor "rgb:%opt{bg},rgb:%opt{blue}" 54set-face global SecondaryCursor "rgb:%opt{bg},rgb:%opt{green}" 55set-face global PrimaryCursorEol "rgb:%opt{bg},rgb:%opt{red}" 56set-face global SecondaryCursorEol "rgb:%opt{bg},rgb:%opt{cyan}" 57set-face global LineNumbers "rgb:%opt{comment}" 58set-face global LineNumberCursor "rgb:%opt{orange}" 59set-face global LineNumbersWrapped "rgb:%opt{bg},rgb:%opt{bg}" 60set-face global MenuForeground "rgb:%opt{fg},rgb:%opt{menuselection}" 61set-face global MenuBackground "rgb:%opt{fg},rgb:%opt{subbg}" 62set-face global MenuInfo "rgb:%opt{green}" 63set-face global Information "rgb:%opt{fg},rgb:%opt{subbg}" 64set-face global Error "rgb:%opt{red}" 65set-face global StatusLine "rgb:%opt{fg},rgb:%opt{subbg}" 66set-face global StatusLineMode "rgb:%opt{orange}" 67set-face global StatusLineInfo "rgb:%opt{blue}" 68set-face global StatusLineValue "rgb:%opt{fg}" 69set-face global StatusCursor "rgb:%opt{bg},rgb:%opt{blue}" 70set-face global Prompt "rgb:%opt{blue}" 71set-face global MatchingChar +bu 72set-face global BufferPadding "rgb:%opt{bg},rgb:%opt{bg}" 73set-face global Whitespace "+d@comment" 74 75# OTHER 76 77set-face global SubBg ",rgb:%opt{subbg}" 78 79# PLUGINS 80 81# kak-lsp 82set-face global InlayHint "+d@type" 83set-face global parameter "+i@variable" 84set-face global enum "rgb:%opt{cyan}" 85set-face global InlayDiagnosticError "rgb:%opt{red}" 86set-face global InlayDiagnosticWarning "rgb:%opt{yellow}" 87set-face global InlayDiagnosticInfo "rgb:%opt{blue}" 88set-face global InlayDiagnosticHint "rgb:%opt{green}" 89set-face global LineFlagError "rgb:%opt{red}" 90set-face global LineFlagWarning "rgb:%opt{yellow}" 91set-face global LineFlagInfo "rgb:%opt{blue}" 92set-face global LineFlagHint "rgb:%opt{green}" 93set-face global DiagnosticError ",,rgb:%opt{red}+c" 94set-face global DiagnosticWarning ",,rgb:%opt{yellow}+c" 95set-face global DiagnosticInfo ",,rgb:%opt{blue}+c" 96set-face global DiagnosticHint ",,rgb:%opt{green}+c" 97# Infobox faces 98set-face global InfoDefault Information 99set-face global InfoBlock block 100set-face global InfoBlockQuote block 101set-face global InfoBullet bullet 102set-face global InfoHeader header 103set-face global InfoLink link 104set-face global InfoLinkMono header 105set-face global InfoMono mono 106set-face global InfoRule comment 107set-face global InfoDiagnosticError InlayDiagnosticError 108set-face global InfoDiagnosticHint InlayDiagnosticHint 109set-face global InfoDiagnosticInformation InlayDiagnosticInfo 110set-face global InfoDiagnosticWarning InlayDiagnosticWarning 111 112# kak-rainbower 113try %{ set-option global rainbow_colors "rgb:%opt{yellow}" "rgb:%opt{magenta}" "rgb:%opt{blue}" } 114 115# Tree-sitter (<https://git.sr.ht/~hadronized/kak-tree-sitter>) 116 117# kak-tree-sitter defaults 118set-face global ts_attribute attribute 119set-face global ts_comment comment 120set-face global ts_comment_unused comment 121set-face global ts_conceal meta # WTF is this? 122set-face global ts_constant value 123set-face global ts_constant_builtin_boolean ts_constant 124set-face global ts_constant_character ts_constant 125set-face global ts_constant_macro ts_constant 126set-face global ts_constructor ts_function 127set-face global ts_diff_plus "rgb:%opt{green}" 128set-face global ts_diff_minus "rgb:%opt{red}" 129set-face global ts_diff_delta "rgb:%opt{yellow}" 130set-face global ts_diff_delta_moved ts_diff_delta 131set-face global ts_error error 132set-face global ts_function function 133set-face global ts_function_builtin builtin 134set-face global ts_function_macro value 135set-face global ts_hint "rgb:%opt{cyan}" 136set-face global ts_info "rgb:%opt{blue}" 137set-face global ts_keyword keyword 138set-face global ts_keyword_conditional keyword 139set-face global ts_keyword_control_conditional keyword 140set-face global ts_keyword_control_directive keyword 141set-face global ts_keyword_control_import keyword 142set-face global ts_keyword_directive keyword 143set-face global ts_keyword_storage keyword 144set-face global ts_keyword_storage_modifier keyword 145set-face global ts_keyword_storage_modifier_mut keyword 146set-face global ts_keyword_storage_modifier_ref keyword 147set-face global ts_label meta 148set-face global ts_markup_bold "+b" 149set-face global ts_markup_heading "rgb:%opt{green}+b" 150set-face global ts_markup_italic "+i" 151set-face global ts_markup_list_checked "rgb:%opt{yellow}" 152set-face global ts_markup_list_numbered "rgb:%opt{yellow}" 153set-face global ts_markup_list_unchecked "rgb:%opt{yellow}" 154set-face global ts_markup_list_unnumbered "rgb:%opt{yellow}" 155set-face global ts_markup_link_label "rgb:%opt{blue}" 156set-face global ts_markup_link_url "rgb:%opt{blue}+iu" 157set-face global ts_markup_link_uri "rgb:%opt{blue}+iu" 158set-face global ts_markup_link_text "rgb:%opt{blue}" 159set-face global ts_markup_quote "+i" 160set-face global ts_markup_raw_block "rgb:%opt{magenta}" 161set-face global ts_markup_raw_inline "rgb:%opt{magenta}" 162set-face global ts_markup_strikethrough "+s" 163set-face global ts_namespace module 164set-face global ts_operator operator 165set-face global ts_property meta 166set-face global ts_punctuation operator 167set-face global ts_punctuation_special operator 168set-face global ts_special meta 169set-face global ts_spell ",,rgb:%opt{red}+c" 170set-face global ts_string string 171set-face global ts_string_regex ts_string 172set-face global ts_string_regexp ts_string 173set-face global ts_string_escape ts_string 174set-face global ts_string_special ts_string 175set-face global ts_string_special_path ts_string 176set-face global ts_string_special_symbol ts_string 177set-face global ts_string_symbol ts_string 178set-face global ts_tag attribute 179set-face global ts_tag_error ",,rgb:%opt{red}+c@ts_tag" 180set-face global ts_text default 181set-face global ts_text_title +b@default 182set-face global ts_type type 183set-face global ts_type_enum_variant value 184set-face global ts_type_enum_variant_builtin builtin 185set-face global ts_variable variable 186set-face global ts_variable_builtin builtin 187set-face global ts_variable_other_member variable 188set-face global ts_variable_parameter +i@variable 189set-face global ts_warning "rgb:%opt{yellow}" 190 191# Helix capture groups 192set-face global ts_punctuation_delimiter operator 193set-face global ts_punctuation_bracket operator 194set-face global ts_type_builtin builtin 195set-face global ts_type_parameter +i@variable 196set-face global ts_constant_builtin value 197set-face global ts_constant_character_escape value 198set-face global ts_constant_numeric value 199set-face global ts_string_special_url ts_markup_link_url 200set-face global ts_comment_block_documentation +i@comment 201set-face global ts_keyword_operator +i@keyword 202set-face global ts_markup_list "rgb:%opt{yellow}" 203