AutoYADM commit: 2025-05-23 18:05:14
This commit is contained in:
parent
2e4ea624e9
commit
4cfc5faff8
2 changed files with 9 additions and 1 deletions
|
@ -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
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -3,7 +3,6 @@ hook global BufCreate .*[.](kdl) %{
|
||||||
set-option buffer comment_line "//"
|
set-option buffer comment_line "//"
|
||||||
set-option buffer comment_block_begin "/*"
|
set-option buffer comment_block_begin "/*"
|
||||||
set-option buffer comment_block_end "*/"
|
set-option buffer comment_block_end "*/"
|
||||||
# set-option window formatcmd "kdlfmt format -"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
hook global WinSetOption filetype=kdl %<
|
hook global WinSetOption filetype=kdl %<
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue