AutoYADM commit: 2025-05-23 17:15:15
This commit is contained in:
parent
9d7132e37a
commit
10bd7e2c15
1 changed files with 2 additions and 2 deletions
|
@ -15,7 +15,7 @@ define-command -hidden kdl-indent-newline %(
|
||||||
define-command -hidden kdl-indent-closing-brace %(
|
define-command -hidden kdl-indent-closing-brace %(
|
||||||
evaluate-commands -no-hooks -draft -itersel %(
|
evaluate-commands -no-hooks -draft -itersel %(
|
||||||
#align closing brace to block start
|
#align closing brace to block start
|
||||||
try %( execute_keys -draft x_ <a-k>^\h*\}\z<ret> m<a-S>1<a-&> )
|
try %( execute-keys -draft x_ <a-k>^\h*\}\z<ret> m<a-S>1<a-&> )
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -33,7 +33,7 @@ hook global WinSetOption filetype=kdl %|
|
||||||
require-module kdl
|
require-module kdl
|
||||||
|
|
||||||
hook window InsertChar \n -group kdl-indent %{ kdl-indent-newline }
|
hook window InsertChar \n -group kdl-indent %{ kdl-indent-newline }
|
||||||
hook window InsertChar \} -group kdl-indent %{ kdl-indent-closing-brace }
|
hook window InsertChar '}' -group kdl-indent %{ kdl-indent-closing-brace }
|
||||||
|
|
||||||
hook -once -always window WinSetOption filetype=.* %{ remove-hooks window kdl-indent }
|
hook -once -always window WinSetOption filetype=.* %{ remove-hooks window kdl-indent }
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue