From 43dbb07792a066072dd60d5f8b4623bc6543b688 Mon Sep 17 00:00:00 2001 From: Andre Ramnitz Date: Sun, 20 Jul 2025 01:08:16 +0200 Subject: [PATCH] use function keys for 3rd party tools --- kakrc | 31 ++++++++++++++++++++----------- 1 file changed, 20 insertions(+), 11 deletions(-) diff --git a/kakrc b/kakrc index b25d417..2aa3b03 100644 --- a/kakrc +++ b/kakrc @@ -29,10 +29,6 @@ hook global BufCreate [^*].* %{ } } -hook global WinCreate ^[^*]+$ %{ - editorconfig-load # needs editorconfig-core-c with use-flag "+cli" on Gentoo -} - hook global BufOpenFile .* %{ modeline-parse } @@ -87,8 +83,8 @@ bundle kakship https://github.com/eburghar/kakship %{ bundle-noload dabruin.kak https://git.sr.ht/~nasmevka/dabruin.kak bundle-install-hook dabruin.kak %{ mkdir -p ${kak_config}/colors - ln -sf "${kak_opt_bundle_path}/dabruin.kak" "${kak_config}/colors/dabruin.kak" - ln -sf "${kak_opt_bundle_path}/dabruin-light.kak" "${kak_config}/colors/dabruin-light.kak" + ln -sfT "${kak_opt_bundle_path}/dabruin.kak/dabruin.kak" "${kak_config}/colors/dabruin.kak" + ln -sfT "${kak_opt_bundle_path}/dabruin.kak/dabruin-light.kak" "${kak_config}/colors/dabruin-light.kak" } bundle-cleaner dabruin.kak %{ rm -f "${kak_config}/colors/dabruin.kak" @@ -128,7 +124,8 @@ bundle kakoune-lsp https://github.com/kakoune-lsp/kakoune-lsp %{ hook global KakEnd .* lsp-exit } -# Enable some linting and formatting + +# Enable some linting and formating # ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── source %sh{ echo ${kak_config}/languagecmd.kak # borrowed from https://git.sr.ht/~nasmevka @@ -190,10 +187,11 @@ hook global WinSetOption filetype=yaml %{ # ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── # dabruin colorscheme config in separate file source "%val{config}/dabruin-wrapper.kak" -# with the following values: +# with the following values: # declare-option str dabruin_background 'rgb:181818' # declare-option str dabruin_accent 'rgb:86c1b9' -# colorscheme dabruin +# declare-option str dabruin_ratio '5/10' +colorscheme dabruin set-face global StatusLine cyan,default,default set-face global StatusLineInfo blue,default,default @@ -300,18 +298,28 @@ hook -always global NormalIdle '' update_hex_color_code_ranges2 hook -always global InsertIdle '' update_hex_color_code_ranges2 hook -always global PromptIdle '' update_hex_color_code_ranges2 -# normal mode kks mappings +# default normal mode kks mappings # ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── map global normal -docstring 'terminal' ': kks-connect terminal' +map global normal -docstring 'terminal' ': kks-connect terminal' map global normal -docstring 'files' ': kks-connect popup kks-files' +map global normal -docstring 'files' ': kks-connect popup kks-files' map global normal -docstring 'buffers' ': kks-connect popup kks-buffers' +map global normal -docstring 'buffers' ': kks-connect popup kks-buffers' map global normal -docstring 'live grep' ': kks-connect popup kks-grep' +map global normal -docstring 'live grep' ': kks-connect popup kks-grep' map global normal -docstring 'file browser' ': kks-connect popup kks-lf' +map global normal -docstring 'file browser' ': kks-connect popup kks-lf' map global normal -docstring 'lines in buffer' ': kks-connect popup kks-lines' +map global normal -docstring 'lines in buffer' ': kks-connect popup kks-lines' map global normal -docstring 'recent files' ': kks-connect popup kks-mru' +map global normal -docstring 'recent files' ': kks-connect popup kks-mru' map global normal -docstring 'session selector' ': kks-connect popup kks-select' +map global normal -docstring 'session selector' ': kks-connect popup kks-select' map global normal -docstring 'filetypes' ': kks-connect popup kks-filetypes' +map global normal -docstring 'filetypes' ': kks-connect popup kks-filetypes' map global normal -docstring 'vcs client' ': kks-connect popup lazygit' +map global normal -docstring 'vcs client' ': kks-connect popup lazygit' # normal mode additional mappings # ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── @@ -326,7 +334,8 @@ map global normal -docstring 'Debug buffer' ': map global normal -docstring 'Delete buffer' ': delete-buffer' map global normal -docstring 'add 1 int' '^' ': inc %val{count} +' map global normal -docstring 'substract 1 int' ': inc %val{count} -' -map global normal -docstring 'surround' 0 ': surround' +map global normal -docstring 'delete current buffer' ': delete-buffer' +map global normal -docstring 'help' ': doc ' # default user mode # ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── -- 2.51.2