diff options
| -rw-r--r-- | .config/kak/colors/gruber-darker.kak | 115 | ||||
| -rw-r--r-- | .config/kak/kakrc | 4 | ||||
| -rw-r--r-- | .config/vis/visrc.lua | 24 | ||||
| -rw-r--r-- | .editorconfig | 4 | ||||
| -rwxr-xr-x | .local/bin/desktop-open-pipe | 1 | ||||
| -rwxr-xr-x | .local/bin/ghostty | 2 |
6 files changed, 137 insertions, 13 deletions
diff --git a/.config/kak/colors/gruber-darker.kak b/.config/kak/colors/gruber-darker.kak new file mode 100644 index 0000000..a498b5e --- /dev/null +++ b/.config/kak/colors/gruber-darker.kak @@ -0,0 +1,115 @@ +# COLORS + +declare-option str fg "abb2bf" +declare-option str bg "181a1f" +declare-option str subbg "1f2229" + +declare-option str lightred "e06c75" +declare-option str darkred "be5046" +declare-option str green "98c379" +declare-option str lightorange "e5c07b" +declare-option str darkorange "d19a66" +declare-option str blue "61afef" +declare-option str magenta "c678dd" +declare-option str cyan "56b6c2" + +declare-option str comment "70798a" + +declare-option str selectionalpha "35" + +# Menus do not support transparency, so we must hardcode the selection + sub bg colors +declare-option str menuselection "2c3f52" + +# CODE + +set-face global value "rgb:%opt{darkorange}" +set-face global type "rgb:%opt{lightorange}" +set-face global variable "rgb:%opt{fg}" +set-face global module "rgb:%opt{lightorange}" +set-face global function "rgb:%opt{blue}" +set-face global string "rgb:%opt{green}" +set-face global keyword "rgb:%opt{magenta}" +set-face global operator "rgb:%opt{lightred}" +set-face global attribute "rgb:%opt{cyan}" +set-face global comment "rgb:%opt{comment}" +set-face global documentation "rgb:%opt{comment}" +set-face global meta "rgb:%opt{cyan}" +set-face global builtin "rgb:%opt{lightorange}" + +# MARKUP + +set-face global title "rgb:%opt{darkorange}" +set-face global header "rgb:%opt{green}" +set-face global mono "rgb:%opt{cyan}" +set-face global block "rgb:%opt{magenta}" +set-face global link "rgb:%opt{blue}" +set-face global bullet "rgb:%opt{lightorange}" +set-face global list "rgb:%opt{fg}" + +# BUILTIN + +set-face global Default "rgb:%opt{fg},rgb:%opt{bg}" +set-face global PrimarySelection "default,rgba:%opt{blue}%opt{selectionalpha}" +set-face global SecondarySelection "default,rgba:%opt{green}%opt{selectionalpha}" +set-face global PrimaryCursor "rgb:%opt{bg},rgb:%opt{blue}" +set-face global SecondaryCursor "rgb:%opt{bg},rgb:%opt{green}" +set-face global PrimaryCursorEol "rgb:%opt{bg},rgb:%opt{lightred}" +set-face global SecondaryCursorEol "rgb:%opt{bg},rgb:%opt{cyan}" +set-face global LineNumbers "rgb:%opt{comment}" +set-face global LineNumberCursor "rgb:%opt{darkorange}" +set-face global LineNumbersWrapped "rgb:%opt{bg},rgb:%opt{bg}" +set-face global MenuForeground "rgb:%opt{fg},rgb:%opt{menuselection}" +set-face global MenuBackground "rgb:%opt{fg},rgb:%opt{subbg}" +set-face global MenuInfo "rgb:%opt{green}" +set-face global Information "rgb:%opt{fg},rgb:%opt{subbg}" +set-face global Error "rgb:%opt{lightred}" +set-face global StatusLine "rgb:%opt{fg},rgb:%opt{subbg}" +set-face global StatusLineMode "rgb:%opt{darkorange}" +set-face global StatusLineInfo "rgb:%opt{blue}" +set-face global StatusLineValue "rgb:%opt{fg}" +set-face global StatusCursor "rgb:%opt{bg},rgb:%opt{blue}" +set-face global Prompt "rgb:%opt{blue}" +set-face global MatchingChar +bu +set-face global BufferPadding "rgb:%opt{bg},rgb:%opt{bg}" +set-face global Whitespace "rgb:%opt{comment}" + +# PLUGINS + +# kak-lsp +set-face global InlayHint "+d@type" +set-face global parameter "+i@variable" +set-face global enum "rgb:%opt{cyan}" +set-face global InlayDiagnosticError "rgb:%opt{lightred}" +set-face global InlayDiagnosticWarning "rgb:%opt{lightorange}" +set-face global InlayDiagnosticInfo "rgb:%opt{blue}" +set-face global InlayDiagnosticHint "rgb:%opt{green}" +set-face global LineFlagError "rgb:%opt{lightred}" +set-face global LineFlagWarning "rgb:%opt{lightorange}" +set-face global LineFlagInfo "rgb:%opt{blue}" +set-face global LineFlagHint "rgb:%opt{green}" +set-face global DiagnosticError ",,rgb:%opt{lightred}+c" +set-face global DiagnosticWarning ",,rgb:%opt{lightorange}+c" +set-face global DiagnosticInfo ",,rgb:%opt{blue}+c" +set-face global DiagnosticHint ",,rgb:%opt{green}+c" +# Infobox faces +set-face global InfoDefault Information +set-face global InfoBlock block +set-face global InfoBlockQuote block +set-face global InfoBullet bullet +set-face global InfoHeader header +set-face global InfoLink link +set-face global InfoLinkMono header +set-face global InfoMono mono +set-face global InfoRule comment +set-face global InfoDiagnosticError InlayDiagnosticError +set-face global InfoDiagnosticHint InlayDiagnosticHint +set-face global InfoDiagnosticInformation InlayDiagnosticInfo +set-face global InfoDiagnosticWarning InlayDiagnosticWarning + +# kak-rainbower +try %{ set-option global rainbow_colors "rgb:%opt{lightorange}" "rgb:%opt{magenta}" "rgb:%opt{blue}" } + +# For backwards compatibility +define-command -override -hidden one-enable-fancy-underlines %{ + echo -debug "one-enable-fancy-underlines is deprecated - curly underlines are enabled by default" +} diff --git a/.config/kak/kakrc b/.config/kak/kakrc new file mode 100644 index 0000000..0c83673 --- /dev/null +++ b/.config/kak/kakrc @@ -0,0 +1,4 @@ +colorscheme gruber-darker +define-command -hidden ghostty-split -params 1 -docstring 'split the current window according to the param (vsplit / hsplit)' %sh{ + ghostty kak -c $kak_session +} diff --git a/.config/vis/visrc.lua b/.config/vis/visrc.lua index 006b5c0..3d01397 100644 --- a/.config/vis/visrc.lua +++ b/.config/vis/visrc.lua @@ -28,18 +28,18 @@ vis.events.subscribe(vis.events.INIT, function() vis:map(m.NORMAL, '<C-]>', ':cn<Enter>') vis:map(m.INSERT, '<C-r>"', '<C-r>+') - vis:map(m.NORMAL, 'y', '<vis-register>+<vis-operator-yank>') - vis:map(m.VISUAL, 'y', '<vis-register>+<vis-operator-yank>') - vis:map(m.VISUAL_LINE, 'y', '<vis-register>+<vis-operator-yank>') - vis:map(m.NORMAL, 'd', '<vis-register>+<vis-operator-delete>') - vis:map(m.VISUAL, 'd', '<vis-register>+<vis-operator-delete>') - vis:map(m.VISUAL_LINE, 'd', '<vis-register>+<vis-operator-delete>') - vis:map(m.NORMAL, 'p', '<vis-register>+<vis-put-after>') - vis:map(m.VISUAL, 'p', '<vis-register>+<vis-put-after>') - vis:map(m.VISUAL_LINE, 'p', '<vis-register>+<vis-put-after>') - vis:map(m.NORMAL, 'P', '<vis-register>+<vis-put-before>') - vis:map(m.VISUAL, 'P', '<vis-register>+<vis-put-before>') - vis:map(m.VISUAL_LINE, 'P', '<vis-register>+<vis-put-before>') + -- vis:map(m.NORMAL, 'y', '<vis-register>+<vis-operator-yank>') + -- vis:map(m.VISUAL, 'y', '<vis-register>+<vis-operator-yank>') + -- vis:map(m.VISUAL_LINE, 'y', '<vis-register>+<vis-operator-yank>') + -- vis:map(m.NORMAL, 'd', '<vis-register>+<vis-operator-delete>') + -- vis:map(m.VISUAL, 'd', '<vis-register>+<vis-operator-delete>') + -- vis:map(m.VISUAL_LINE, 'd', '<vis-register>+<vis-operator-delete>') + -- vis:map(m.NORMAL, 'p', '<vis-register>+<vis-put-after>') + -- vis:map(m.VISUAL, 'p', '<vis-register>+<vis-put-after>') + -- vis:map(m.VISUAL_LINE, 'p', '<vis-register>+<vis-put-after>') + -- vis:map(m.NORMAL, 'P', '<vis-register>+<vis-put-before>') + -- vis:map(m.VISUAL, 'P', '<vis-register>+<vis-put-before>') + -- vis:map(m.VISUAL_LINE, 'P', '<vis-register>+<vis-put-before>') end) local files = {} diff --git a/.editorconfig b/.editorconfig index 96126d7..4c3c9ec 100644 --- a/.editorconfig +++ b/.editorconfig @@ -8,6 +8,10 @@ root = true insert_final_newline = true trim_trailing_whitespace = true +[*.{md}] +indent_style = space +indent_size = 2 + [*.{yaml,yml}] indent_style = space indent_size = 2 diff --git a/.local/bin/desktop-open-pipe b/.local/bin/desktop-open-pipe index 4989780..b739379 100755 --- a/.local/bin/desktop-open-pipe +++ b/.local/bin/desktop-open-pipe @@ -2,6 +2,5 @@ echo listening for open commands loop { let line = nc -l 127.0.0.1 1994 - echo $line | save --append /tmp/debuglogs try { bash -c $"open ($line)" } } diff --git a/.local/bin/ghostty b/.local/bin/ghostty new file mode 100755 index 0000000..13f4793 --- /dev/null +++ b/.local/bin/ghostty @@ -0,0 +1,2 @@ +#!/bin/sh + |
