AutoYADM commit: 2025-05-23 18:05:14

This commit is contained in:
Daniel Fichtinger 2025-05-23 18:05:14 -04:00
parent 2e4ea624e9
commit 4cfc5faff8
2 changed files with 9 additions and 1 deletions

View file

@ -62,3 +62,12 @@ hook global WinSetOption filetype=man %{
}
}
}
hook global WinSetOption filetype=kdl %{
set-option window formatcmd "kdlfmt format -"
hook -group kdl-auto-format window BufWritePre .* format
hook -once -always WinSetOption filetype=.* %{
unset-option window formatcmd
remove-hooks window kdl-auto-format
}
}

View file

@ -3,7 +3,6 @@ hook global BufCreate .*[.](kdl) %{
set-option buffer comment_line "//"
set-option buffer comment_block_begin "/*"
set-option buffer comment_block_end "*/"
# set-option window formatcmd "kdlfmt format -"
}
hook global WinSetOption filetype=kdl %<