AutoYADM commit: 2025-05-23 17:30:15
This commit is contained in:
parent
10bd7e2c15
commit
f01b0d0052
2 changed files with 9 additions and 9 deletions
|
@ -12,12 +12,11 @@ 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 %(
|
|
||||||
#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-&> =
|
||||||
)
|
try %= execute-keys -draft -itersel <a-h><a-k>^\h*\Q %val{hook_param} \E$<ret> mGi s \A|.\z<ret> 1<a-&> =
|
||||||
)
|
|
|
||||||
|
|
||||||
~
|
~
|
||||||
|
|
||||||
|
@ -32,8 +31,9 @@ hook global BufCreate .*[.](kdl) %{
|
||||||
hook global WinSetOption filetype=kdl %|
|
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 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 }
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,7 @@ bundle inc-dec.kak https://gitlab.com/Screwtapello/kakoune-inc-dec %{
|
||||||
}
|
}
|
||||||
|
|
||||||
bundle auto-pairs.kak https://github.com/alexherbo2/auto-pairs.kak %{
|
bundle auto-pairs.kak https://github.com/alexherbo2/auto-pairs.kak %{
|
||||||
enable-auto-pairs
|
# enable-auto-pairs
|
||||||
}
|
}
|
||||||
|
|
||||||
bundle-noload fzf.kak https://github.com/andreyorst/fzf.kak %{
|
bundle-noload fzf.kak https://github.com/andreyorst/fzf.kak %{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue