colorscheme desertex add-highlighter global/ number-lines -relative -hlcursor add-highlighter global/ show-matching # this messes with jumplist # map -docstring "jump forward" global normal ":exec c-i" map -docstring "toogle comment" global user / ":comment-line" hook global BufWritePost .* %{ git update-diff } define-command zellij-fzf %{ zellij-terminal-horizontal sh -c "find . -type f -not -path *.git* | fzf --bind 'enter:execute(echo eval -client %val{client} e {} | kak -p %val{session})+execute(zellij action close-pane)'" } map -docstring "git" global user g ":enter-user-mode git" map -docstring "find" global user f ":enter-user-mode search" map -docstring "format" global user F ":lsp-formatting" map -docstring "format" global user K ":lsp-hover-buffer" eval %sh{kak-lsp} lsp-enable lsp-auto-hover-enable # zellij-terminal-horizontal fzf --bind "enter:execute(kak -C %val{session} {})" # declare-user-mode git map -docstring "preview" global git p ":git show-diff" map -docstring "next change" global git j ":git next-hunk" map -docstring "previous change" global git k ":git prev-hunk" map -docstring "previous lazygit" global git g ":zellij-terminal-horizontal lazygit" declare-user-mode search map -docstring "file" global search f ":zellij-fzf" map -docstring "grep" global search g ":grep"