AutoYADM commit: 2025-05-15 21:40:01

This commit is contained in:
Daniel Fichtinger 2025-05-15 21:40:01 -04:00
parent b56e38ce51
commit 78e6028845
2 changed files with 22 additions and 9 deletions

View file

@ -0,0 +1,3 @@
hook global WinSetOption filetype=go %{
hook -group go-auto-format window BufWritePre .* lsp-formatting
}

View file

@ -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