diff --git a/.config/kak/autoload/plugins.kak b/.config/kak/autoload/plugins.kak index b38274b4..3b81ecc4 100644 --- a/.config/kak/autoload/plugins.kak +++ b/.config/kak/autoload/plugins.kak @@ -43,3 +43,14 @@ bundle easymotion.kak https://git.sr.ht/~voroskoi/easymotion.kak %{ bundle byline.kak https://github.com/evanrelf/byline.kak %{ require-module "byline" } + +bundle case.kak https://gitlab.com/FlyingWombat/case.kak %{ + map global normal '`' ': enter-user-mode case' +} + +bundle kakoune-hump https://github.com/delapouite/kakoune-hump %{ + map global normal ': select-previous-hump' -docstring 'select prev hump' + map global normal ': select-next-hump' -docstring 'select next hump' + map global normal ': extend-previous-hump' -docstring 'extend prev hump' + map global normal ': extend-next-hump' -docstring 'extend next hump' +} diff --git a/.config/kak/bundle/case.kak-install b/.config/kak/bundle/case.kak-install new file mode 100644 index 00000000..f0f2b219 --- /dev/null +++ b/.config/kak/bundle/case.kak-install @@ -0,0 +1 @@ +https://gitlab.com/FlyingWombat/case.kak \ No newline at end of file diff --git a/.config/kak/bundle/case.kak-load.kak b/.config/kak/bundle/case.kak-load.kak new file mode 100644 index 00000000..e9f74355 --- /dev/null +++ b/.config/kak/bundle/case.kak-load.kak @@ -0,0 +1,2 @@ +source "/home/fic/.config/kak/bundle/case.kak/rc/case.kak" +trigger-user-hook bundle-loaded=case.kak \ No newline at end of file diff --git a/.config/kak/bundle/kakoune-hump-install b/.config/kak/bundle/kakoune-hump-install new file mode 100644 index 00000000..ca763d32 --- /dev/null +++ b/.config/kak/bundle/kakoune-hump-install @@ -0,0 +1 @@ +https://github.com/delapouite/kakoune-hump \ No newline at end of file diff --git a/.config/kak/bundle/kakoune-hump-load.kak b/.config/kak/bundle/kakoune-hump-load.kak new file mode 100644 index 00000000..7338a084 --- /dev/null +++ b/.config/kak/bundle/kakoune-hump-load.kak @@ -0,0 +1,2 @@ +source "/home/fic/.config/kak/bundle/kakoune-hump/hump.kak" +trigger-user-hook bundle-loaded=kakoune-hump \ No newline at end of file diff --git a/.config/kak/kakrc b/.config/kak/kakrc index 9af3755f..c8ffd9c5 100644 --- a/.config/kak/kakrc +++ b/.config/kak/kakrc @@ -50,3 +50,13 @@ map -docstring "goto next buffer" global user i ": bn" map global normal _ map -docstring "commenct line" global normal ":comment-line" + +declare-user-mode git +map -docstring "git" global user g ": enter-user-mode git" +map -docstring "lazygit" global git g ": terminal lazygit" +def git_blame %{ + info %sh{ + git -C $(dirname $(realpath $kak_buffile)) blame -L $kak_cursor_line,$kak_cursor_line $(realpath $kak_buffile) + } +} +map -docstring "blame" global git b ": git_blame"