diff --git a/.config/kak/kakrc b/.config/kak/kakrc index a0f02b9e..8007a81a 100644 --- a/.config/kak/kakrc +++ b/.config/kak/kakrc @@ -123,7 +123,12 @@ 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" +map -docstring "lazygit kak cwd" global git g ": terminal lazygit" +map -docstring "lazygit buffer directory" global git G %{ + evaluate-commands terminal "lazygit -w %sh{ + dirname "$kak_buffile" + }" +} def git_blame %{ info %sh{ git -C $(dirname $(realpath $kak_buffile)) blame -L $kak_cursor_line,$kak_cursor_line $(realpath $kak_buffile)