Default to rustfmt for formatcmd in rust

`rustfmt` is the de facto standard for formatting in rust so setting it by default would be nice.

https://github.com/mawww/kakoune/issues/2801
This commit is contained in:
Ivan Tham 2019-03-22 16:59:24 +00:00 committed by GitHub
parent ad882c3370
commit ae7f65acd8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -86,3 +86,8 @@ 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
# ‾‾‾‾‾‾‾‾‾‾‾‾‾
set window formatcmd 'rustfmt'