This commit is contained in:
Leonardo Eugênio 2022-08-04 23:22:41 -03:00
parent 7a9c0ce6f4
commit 957e4216a8

View file

@ -284,119 +284,119 @@ in {
".config/fish/conf.d/prompt.fish".source = ./fish_prompt.fish; ".config/fish/conf.d/prompt.fish".source = ./fish_prompt.fish;
".local/share/backgrounds".source = ./backgrounds; ".local/share/backgrounds".source = ./backgrounds;
".config/kak/kakrc".text = let ".config/kak/kakrc".text = let
colors = lib.mapAttrs (_: lib.replaceStrings ["#"] ["rgb:"]) { colors = lib.mapAttrs (_: lib.replaceStrings [ "#" ] [ "rgb:" ]) {
accent_fg = accent.fg ; accent_fg = accent.fg;
accent_color = accent.color ; accent_color = accent.color;
bg_light = color.bg_light ; bg_light = color.bg_light;
bg_dark = color.bg_dark ; bg_dark = color.bg_dark;
nontxt = color.nontxt ; nontxt = color.nontxt;
orange = color.normal.orange ; orange = color.normal.orange;
brown = color.normal.brown ; brown = color.normal.brown;
}; };
in with colors; in with colors;
lib.concatStringsSep "\n" (map (lib.readFile) [ lib.concatStringsSep "\n" (map (lib.readFile) [
./kak/filetypes.kak ./kak/filetypes.kak
./kak/hooks.kak ./kak/hooks.kak
./kak/indent.kak ./kak/indent.kak
./kak/keys.kak ./kak/keys.kak
./kak/plug.kak ./kak/plug.kak
./kak/usermode.kak ./kak/usermode.kak
]) +'' ]) + ''
set global scrolloff 10,20 set global scrolloff 10,20
set global autoreload yes set global autoreload yes
set global startup_info_version 20200901 set global startup_info_version 20200901
'' + '' '' + ''
face global crosshairs_line default,${ bg_dark } face global crosshairs_line default,${bg_dark}
face global crosshairs_column default+b face global crosshairs_column default+b
# For Code # For Code
face global value magenta face global value magenta
face global type yellow face global type yellow
face global variable blue face global variable blue
face global module ${ brown } face global module ${brown}
face global function ${ orange } face global function ${orange}
face global string green face global string green
face global keyword ${ accent_color } face global keyword ${accent_color}
face global operator yellow face global operator yellow
face global attribute cyan face global attribute cyan
face global comment ${ bg_light } face global comment ${bg_light}
face global documentation comment face global documentation comment
face global meta +i@function face global meta +i@function
face global builtin blue face global builtin blue
# For markup # For markup
face global title blue face global title blue
face global header cyan face global header cyan
face global mono green face global mono green
face global block magenta face global block magenta
face global link cyan face global link cyan
face global bullet cyan face global bullet cyan
face global list yellow face global list yellow
# builtin faces # builtin faces
face global Default default,default face global Default default,default
face global PrimaryCursor ${ accent_fg },${ accent_color }+fg face global PrimaryCursor ${accent_fg},${accent_color}+fg
face global PrimaryCursorEol PrimaryCursor face global PrimaryCursorEol PrimaryCursor
face global PrimarySelection default,${ bg_light }+f face global PrimarySelection default,${bg_light}+f
face global SecondaryCursor default,default+rfg face global SecondaryCursor default,default+rfg
face global SecondaryCursorEol SecondaryCursor face global SecondaryCursorEol SecondaryCursor
face global SecondarySelection PrimarySelection face global SecondarySelection PrimarySelection
face global InactiveCursor ${ accent_fg },${ bg_light }+fg face global InactiveCursor ${accent_fg},${bg_light}+fg
face global MenuForeground ${ accent_fg },${ accent_color } face global MenuForeground ${accent_fg},${accent_color}
face global MenuBackground default,${ bg_dark } face global MenuBackground default,${bg_dark}
face global MenuInfo cyan face global MenuInfo cyan
face global Information default,${ bg_dark } face global Information default,${bg_dark}
face global Error default,red+g face global Error default,red+g
face global StatusLine %sh{ face global StatusLine %sh{
printf "rgb:" printf "rgb:"
head /dev/urandom | head /dev/urandom |
base64 | base64 |
rg --text -o "${ color.random_range }" | rg --text -o "${color.random_range}" |
head -n 6 | head -n 6 |
sd '\n' "" sd '\n' ""
} }
face global StatusLineMode StatusLine face global StatusLineMode StatusLine
face global StatusLineInfo StatusLine face global StatusLineInfo StatusLine
face global StatusLineValue StatusLine face global StatusLineValue StatusLine
face global StatusCursor ${ accent_fg },${ accent_color } face global StatusCursor ${accent_fg},${accent_color}
face global Prompt yellow,default face global Prompt yellow,default
try %{add-highlighter global/ show-matching} try %{add-highlighter global/ show-matching}
face global MatchingChar ${ accent_color },default+b face global MatchingChar ${accent_color},default+b
# Goodies # Goodies
try %{add-highlighter global/number-lines number-lines -relative -hlcursor} try %{add-highlighter global/number-lines number-lines -relative -hlcursor}
face global LineNumbers ${ bg_light },default face global LineNumbers ${bg_light},default
face global LineNumberCursor default,${ bg_dark } face global LineNumberCursor default,${bg_dark}
face global LineNumbersWrapped red,default face global LineNumbersWrapped red,default
try %{add-highlighter global/ show-whitespaces} try %{add-highlighter global/ show-whitespaces}
face global Whitespace ${ nontxt },default+f face global Whitespace ${nontxt},default+f
face global BufferPadding ${ nontxt },default face global BufferPadding ${nontxt},default
## highlight trailing whitespace ## highlight trailing whitespace
# add-highlighter global/ regex '\h*$' 0:red,red+u # add-highlighter global/ regex '\h*$' 0:red,red+u
face global Reference default+bu face global Reference default+bu
face global InlayHint ${ bg_light }+buif face global InlayHint ${bg_light}+buif
# Lsp # Lsp
'' + (lib.concatStringsSep "\n" (lib.mapAttrsToList (name: color: '' '' + (lib.concatStringsSep "\n" (lib.mapAttrsToList (name: color: ''
face global HighlightDiagnostic${ name } ${ color },default+bu face global HighlightDiagnostic${name} ${color},default+bu
face global Diagnostic${ name } ${ color },default+bu face global Diagnostic${name} ${color},default+bu
face global TextDiagnostic${ name } ${ color },default+b face global TextDiagnostic${name} ${color},default+b
face global InlayDiagnostic${ name } ${ color },default+br face global InlayDiagnostic${name} ${color},default+br
'') { '') {
Error = "red"; Error = "red";
Warning = "yellow"; Warning = "yellow";
Hint = "blue"; Hint = "blue";
})); }));
}; };
programs.alacritty = { programs.alacritty = {