This commit is contained in:
Maxime Coste 2019-03-24 12:32:28 +11:00
commit 615c92f6e2

View File

@ -86,3 +86,10 @@ hook global WinSetOption filetype=rust %[
hook window InsertChar \} -group rust-indent rust-indent-on-closing-curly-brace hook window InsertChar \} -group rust-indent rust-indent-on-closing-curly-brace
hook -once -always window WinSetOption filetype=.* %{ remove-hooks window rust-.+ } hook -once -always window WinSetOption filetype=.* %{ remove-hooks window rust-.+ }
] ]
# Configuration
# ‾‾‾‾‾‾‾‾‾‾‾‾‾
hook global WinSetOption filetype=rust %[
set window formatcmd 'rustfmt'
]