]> Freerunner's - kakoune-config.git/commitdiff
use function keys for 3rd party tools
authorAndre Ramnitz <tux.rising@gmail.com>
Sat, 19 Jul 2025 23:08:16 +0000 (01:08 +0200)
committerAndre Ramnitz <tux.rising@gmail.com>
Sat, 19 Jul 2025 23:08:16 +0000 (01:08 +0200)
kakrc

diff --git a/kakrc b/kakrc
index b25d417eef8392c96c50bcb877f9537b471dc25f..2aa3b0388d44a2ddd7b61326878629ab8420728f 100644 (file)
--- 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'                                <c-t>  ': kks-connect terminal<ret>'
+map global normal -docstring 'terminal'                                <F2>  ': kks-connect terminal<ret>'
 map global normal -docstring 'files'                                   <c-f>  ': kks-connect popup kks-files<ret>'
+map global normal -docstring 'files'                                   <F3>  ': kks-connect popup kks-files<ret>'
 map global normal -docstring 'buffers'                                 <c-b>  ': kks-connect popup kks-buffers<ret>'
+map global normal -docstring 'buffers'                                 <F4>   ': kks-connect popup kks-buffers<ret>'
 map global normal -docstring 'live grep'                               <c-g>  ': kks-connect popup kks-grep<ret>'
+map global normal -docstring 'live grep'                               <F5>  ': kks-connect popup kks-grep<ret>'
 map global normal -docstring 'file browser'                            <c-h>  ': kks-connect popup kks-lf<ret>'
+map global normal -docstring 'file browser'                            <F6>  ': kks-connect popup kks-lf<ret>'
 map global normal -docstring 'lines in buffer'                         <c-l>  ': kks-connect popup kks-lines<ret>'
+map global normal -docstring 'lines in buffer'                         <F7>  ': kks-connect popup kks-lines<ret>'
 map global normal -docstring 'recent files'                            <c-r>  ': kks-connect popup kks-mru<ret>'
+map global normal -docstring 'recent files'                            <F8>  ': kks-connect popup kks-mru<ret>'
 map global normal -docstring 'session selector'                        <c-s>  ': kks-connect popup kks-select<ret>'
+map global normal -docstring 'session selector'                        <F9>  ': kks-connect popup kks-select<ret>'
 map global normal -docstring 'filetypes'                               <c-t>  ': kks-connect popup kks-filetypes<ret>'
+map global normal -docstring 'filetypes'                               <F10>  ': kks-connect popup kks-filetypes<ret>'
 map global normal -docstring 'vcs client'                              <c-v>  ': kks-connect popup lazygit<ret>'
+map global normal -docstring 'vcs client'                              <F11>  ': kks-connect popup lazygit<ret>'
 
 # normal mode additional mappings
 # ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
@@ -326,7 +334,8 @@ map global normal -docstring 'Debug buffer'                            <c-D>  ':
 map global normal -docstring 'Delete buffer'                           <c-q>  ': delete-buffer<ret>'
 map global normal -docstring 'add 1 int'                                 '^'  ': inc %val{count} +<ret>'
 map global normal -docstring 'substract 1 int'                         <a-^>  ': inc %val{count} -<ret>'
-map global normal -docstring 'surround'                                    0  ': surround<ret>'
+map global normal -docstring 'delete current buffer'                   <c-x>  ': delete-buffer'
+map global normal -docstring 'help'                                     <F1>  ': doc '
 
 # default user mode
 # ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────