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
3
.config/kak/autoload/filetype/go.kak
Normal file
3
.config/kak/autoload/filetype/go.kak
Normal file
|
@ -0,0 +1,3 @@
|
|||
hook global WinSetOption filetype=go %{
|
||||
hook -group go-auto-format window BufWritePre .* lsp-formatting
|
||||
}
|
|
@ -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