cleanup and usermods
This commit is contained in:
parent
d3e182cca0
commit
9e3292de10
1 changed files with 18 additions and 25 deletions
43
kakrc
43
kakrc
|
|
@ -9,34 +9,27 @@ map -docstring "toogle comment" global user / ":comment-line<ret>"
|
|||
|
||||
hook global BufWritePost .* %{ git update-diff }
|
||||
|
||||
# define-command find-file %{ evaluate-commands %sh{
|
||||
# file=$(find . -type f -not -path './.git*' -not -path './node_modules*' | fzf --tmux 90% --preview 'bat {} --color=always')
|
||||
# [ -n "$file" ] && printf 'edit %%{%s}' "$file"
|
||||
# } }
|
||||
|
||||
define-command zellij-fzf %{
|
||||
zellij-terminal-horizontal sh -c "find . | fzf --bind 'enter:execute(echo eval -client %val{client} e {} | kak -p %val{session})+execute(zellij action close-pane)'"
|
||||
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 "preview" global user p ":git show-diff<ret>"
|
||||
map -docstring "next change" global user ] ":git next-hunk<ret>"
|
||||
map -docstring "previous change" global user [ ":git prev-hunk<ret>"
|
||||
map -docstring "find file" global user f ":zellij-fzf<ret>"
|
||||
map -docstring "grep" global user g ":grep<ret>"
|
||||
map -docstring "git" global user g ":enter-user-mode git<ret>"
|
||||
map -docstring "find" global user f ":enter-user-mode search<ret>"
|
||||
map -docstring "format" global user F ":lsp-formatting<ret>"
|
||||
map -docstring "format" global user K ":lsp-hover-buffer<ret>"
|
||||
|
||||
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<ret>"
|
||||
map -docstring "next change" global git j ":git next-hunk<ret>"
|
||||
map -docstring "previous change" global git k ":git prev-hunk<ret>"
|
||||
map -docstring "previous lazygit" global git g ":zellij-terminal-horizontal lazygit<ret>"
|
||||
|
||||
|
||||
#alacritty??
|
||||
# [window]
|
||||
# decorations = "none"
|
||||
# # opacity = 0.9
|
||||
# # ~/.config/alacritty/alacritty.toml
|
||||
# [keyboard]
|
||||
# bindings = [
|
||||
# { key = "I", mods = "Control", chars = "\U0000001B[105;5u" },
|
||||
# ]
|
||||
|
||||
|
||||
|
||||
|
||||
declare-user-mode search
|
||||
map -docstring "file" global search f ":zellij-fzf<ret>"
|
||||
map -docstring "grep" global search g ":grep<ret>"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue