kakoune: add colorscheme lp-dark, add some keys

This commit is contained in:
2026-05-05 23:55:16 +02:00
parent 0a551a210b
commit 70cd97c9b0
2 changed files with 121 additions and 1 deletions

View File

@@ -0,0 +1,117 @@
# LP Dark
declare-option str bg "111c22"
declare-option str bgmenu "262b40"
declare-option str fg "a1a3aa"
declare-option str orange "d78c42"
declare-option str blue "42a5d7"
declare-option str sand "f2d1a6"
declare-option str mint "96e9bf"
declare-option str brick "b25e34"
declare-option str darkmint "53acac"
declare-option str pink "cc66cc"
declare-option str pink2 "be59c0"
declare-option str purple "7461d1"
declare-option str yellow "acac53"
declare-option str yellow2 "949438"
declare-option str comment "70675c"
declare-option str red "ae4242"
declare-option str gray "8f92a3"
declare-option str green "667c50"
declare-option str selectionalpha "80"
## CODE
set-face global value "rgb:%opt{mint}"
set-face global type "rgb:%opt{darkmint}"
set-face global variable "rgb:%opt{yellow}"
set-face global module "rgb:%opt{blue}"
set-face global function "rgb:%opt{yellow}"
set-face global string "rgb:%opt{brick}"
set-face global keyword "rgb:%opt{sand}"
set-face global operator "rgb:%opt{orange}"
set-face global attribute "rgb:%opt{yellow2}"
set-face global comment "rgb:%opt{comment}"
set-face global documentation "rgb:%opt{comment}"
set-face global meta "rgb:%opt{pink2}"
set-face global bultin "rgb:%opt{green}"
## MARKUP
set-face global title "rgb:%opt{brick}"
set-face global header "rgb:%opt{orange}"
set-face global mono "rgb:%opt{yellow2}"
set-face global block "rgb:%opt{darkmint}"
set-face global link "rgb:%opt{blue}"
set-face global bullet "rgb:%opt{orange}"
set-face global list "rgb:%opt{orange}"
## BUILTIN
set-face global Default "rgb:%opt{fg},rgb:%opt{bg}"
set-face global PrimarySelection "rgb:%opt{bg},rgba:%opt{mint}%opt{selectionalpha}"
set-face global SecondarySelection "rgb:%opt{bg},rgba:%opt{blue}%opt{selectionalpha}"
set-face global PrimaryCursor "rgb:%opt{bg},rgb:%opt{mint}"
set-face global SecondaryCursor "rgb:%opt{bg},rgb:%opt{blue}"
set-face global PrimaryCursorEol "rgb:%opt{bg},rgb:%opt{pink}"
set-face global SecondaryCursorEol "rgb:%opt{bg},rgb:%opt{purple}"
set-face global MenuForeground "rgb:%opt{bg},rgb:%opt{darkmint}"
set-face global MenuBackground "rgb:%opt{darkmint},rgb:%opt{bgmenu}"
set-face global MenuInfo "rgb:%opt{comment}"
set-face global Information "rgb:%opt{yellow},rgb:%opt{bgmenu}"
set-face global InlineInformation "rgb:%opt{brick}"
set-face global Error "rgb:%opt{orange}"
set-face global DiagnosticError "default,default,rgb:%opt{red}+c"
set-face global DiagnosticWarning "default,default,rgb:%opt{yellow}+c"
set-face global StatusLine "rgb:%opt{yellow2},rgb:%opt{bgmenu}"
set-face global StatusLineMode "rgb:%opt{mint}"
set-face global StatusLineInfo "rgb:%opt{brick}"
set-face global StatusLineValue "rgb:%opt{mint}"
set-face global StatusCursor "rgb:%opt{bg},rgb:%opt{mint}"
set-face global Prompt "rgb:%opt{mint}"
set-face global BufferPadding "rgb:%opt{bg},rgb:%opt{bg}"
# Built-in highlighter faces
set-face global LineNumbers "rgb:%opt{comment}"
set-face global LineNumberCursor "rgb:%opt{comment}"
set-face global LineNumbersWrapped "rgb:%opt{bg},rgb:%opt{bg}"
set-face global MatchingChar "rgb:%opt{sand}"
set-face global Whitespace "rgb:%opt{gray}"
set-face global WhitespaceIndent "rgb:%opt{gray}"
set-face global WrapMarker "rgb:%opt{sand}"
# PLUGINS
# kak-lsp
set-face global InfoDefault "default"
set-face global InfoBlock "rgb:%opt{darkmint}"
set-face global InfoBlockQuote "rgb:%opt{orange}"
set-face global InfoBullet "rgb:%opt{orange}"
set-face global InfoHeader "rgb:%opt{orange}"
set-face global InfoLink "rgb:%opt{blue}"
set-face global InfoLinkMono "rgb:%opt{yellow2}"
set-face global InfoMono "rgb:%opt{darkmint}"
set-face global InfoRule "rgb:%opt{orange}"
set-face global InfoDiagnosticError "rgb:%opt{red}"
set-face global InfoDiagnosticHint "rgb:%opt{blue}"
set-face global InfoDiagnosticInformation "rgb:%opt{sand}"
set-face global InfoDiagnosticWarning "rgb:%opt{yellow}"
set-face global LineFlagError "rgb:%opt{red}"
set-face global LineFlagHint "rgb:%opt{blue}"
set-face global LineFlagInfo "rgb:%opt{sand}"
set-face global LineFlagWarning "rgb:%opt{yellow}"
set-face global InlayDiagnosticError "rgb:%opt{red}"
set-face global InlayDiagnosticHint "rgb:%opt{blue}"
set-face global InlayDiagnosticInfo "rgb:%opt{sand}"
set-face global InlayDiagnosticWarning "rgb:%opt{yellow}"
set-face global LineFlagError "rgb:%opt{red}"
set-face global LineFlagHint "rgb:%opt{blue}"
set-face global LineFlagInfo "rgb:%opt{sand}"
set-face global LineFlagWarning "rgb:%opt{yellow}"

View File

@@ -18,12 +18,15 @@ declare-user-mode options-mode
map global -docstring "File" user 'f' ': enter-user-mode file-mode<ret>' map global -docstring "File" user 'f' ': enter-user-mode file-mode<ret>'
map global -docstring "Open (git)" file-mode 'a' ': file-open-git<ret>' map global -docstring "Open (git)" file-mode 'a' ': file-open-git<ret>'
map global -docstring "Git diff file" file-mode 'd' ': git diff %val{buffile}<ret>'
map global -docstring "Open (fd)" file-mode 'f' ': file-open<ret>' map global -docstring "Open (fd)" file-mode 'f' ': file-open<ret>'
map global -docstring "Git grep" file-mode 'g' ': git grep '
map global -docstring "Options" user 'o' ': enter-user-mode options-mode<ret>' map global -docstring "Options" user 'o' ': enter-user-mode options-mode<ret>'
map global -docstring "Light mode" options-mode 'l' ': colorscheme one-light<ret>' map global -docstring "Light mode" options-mode 'l' ': colorscheme one-light<ret>'
map global -docstring "Dark mode" options-mode 'd' ': colorscheme one-darker<ret>' map global -docstring "Dark mode" options-mode 'd' ': colorscheme one-darker<ret>'
map global -docstring "LP Dark mode" options-mode 'D' ': colorscheme lp-dark<ret>'
map global -docstring "Paste clipboard (append)" user 'p' '<a-!> xsel -bo<ret>' map global -docstring "Paste clipboard (append)" user 'p' '<a-!> xsel -bo<ret>'
map global -docstring "Paste clipboard (insert)" user 'P' '! xsel -bo<ret>' map global -docstring "Paste clipboard (insert)" user 'P' '! xsel -bo<ret>'
@@ -82,7 +85,7 @@ bundle-theme kakoune-themes "https://codeberg.org/anhsirk0/kakoune-themes"
# FZF # FZF
bundle fzf.kak "https://github.com/andreyorst/fzf.kak" %{ bundle fzf.kak "https://github.com/andreyorst/fzf.kak" %{
map global normal <c-p> ': fzf-mode<ret>' map global user s ': fzf-mode<ret>'
} }
hook global BufCreate [^*].* %{ hook global BufCreate [^*].* %{