AutoYADM commit: 2025-05-15 21:40:01
This commit is contained in:
parent
b56e38ce51
commit
78e6028845
2 changed files with 22 additions and 9 deletions
|
@ -79,15 +79,15 @@ map -docstring 'toggle screen centering' global ui z ": ui-scrolloff-toggle<ret>
|
|||
declare-option bool autowrap false
|
||||
|
||||
define-command autowrap-toggle -docstring "toggle autowrap" %{
|
||||
evaluate-commands %sh{
|
||||
if [ "$kak_opt_autowrap" = "true" ]; then
|
||||
echo "autowrap-disable"
|
||||
echo "set-option window autowrap false"
|
||||
else
|
||||
echo "autowrap-enable"
|
||||
echo "set-option window autowrap true"
|
||||
fi
|
||||
}
|
||||
evaluate-commands %sh{
|
||||
if [ "$kak_opt_autowrap" = "true" ]; then
|
||||
echo "autowrap-disable"
|
||||
echo "set-option window autowrap false"
|
||||
else
|
||||
echo "autowrap-enable"
|
||||
echo "set-option window autowrap true"
|
||||
fi
|
||||
}
|
||||
}
|
||||
|
||||
map -docstring "toggle autowrap" global ui a ": autowrap-toggle<ret>"
|
||||
|
@ -131,6 +131,16 @@ def git_blame %{
|
|||
}
|
||||
map -docstring "blame" global git b ": git_blame"
|
||||
|
||||
# declare-option bool lsp_fmt false
|
||||
# define-command -docstring "format buffer" format-safe %{
|
||||
# try %sh{
|
||||
# if [ "$kak_opt_lsp_fmt" = "true" ]; then
|
||||
# echo "lsp-formatting"
|
||||
# else
|
||||
# echo "format"
|
||||
# } catch %{ echo "Couldn't format" }
|
||||
# }
|
||||
|
||||
map -docstring "format" global user F ": format<ret>"
|
||||
|
||||
# Case-insensitive Search
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue