Merge remote-tracking branch 'muffin4/fix-modechange-usages'
This commit is contained in:
commit
e1acd16f50
|
@ -14,7 +14,7 @@ hook global BufCreate .*[.](dhall) %{
|
|||
hook global WinSetOption filetype=dhall %{
|
||||
require-module dhall
|
||||
|
||||
hook window ModeChange insert:.* -group dhall-trim-indent dhall-trim-indent
|
||||
hook window ModeChange pop:insert:.* -group dhall-trim-indent dhall-trim-indent
|
||||
hook window InsertChar \n -group dhall-indent dhall-indent-on-new-line
|
||||
|
||||
hook -once -always window WinSetOption filetype=.* %{ remove-hooks window dhall-.+ }
|
||||
|
|
|
@ -15,7 +15,7 @@ hook global WinSetOption filetype=gluon %{
|
|||
require-module gluon
|
||||
|
||||
set-option window extra_word_chars '_' "'"
|
||||
hook window ModeChange insert:.* -group gluon-trim-indent gluon-trim-indent
|
||||
hook window ModeChange pop:insert:.* -group gluon-trim-indent gluon-trim-indent
|
||||
hook window InsertChar \n -group gluon-indent gluon-indent-on-new-line
|
||||
|
||||
hook -once -always window WinSetOption filetype=.* %{
|
||||
|
|
|
@ -16,7 +16,7 @@ hook global WinSetOption filetype=ninja %{
|
|||
|
||||
set-option window static_words %opt{ninja_static_words}
|
||||
|
||||
hook window ModeChange insert:.* -group ninja-trim-indent ninja-trim-indent
|
||||
hook window ModeChange pop:insert:.* -group ninja-trim-indent ninja-trim-indent
|
||||
hook window InsertChar \n -group ninja-indent ninja-indent-on-new-line
|
||||
# cleanup trailing whitespaces on current line insert end
|
||||
hook window ModeChange pop:insert:.* -group ninja-trim-indent %{ try %{ execute-keys -draft <semicolon> <a-x> s ^\h+$ <ret> d } }
|
||||
|
|
Loading…
Reference in New Issue
Block a user