From ae7f65acd81feea971d6196bb5f7a9e37784e33e Mon Sep 17 00:00:00 2001 From: Ivan Tham Date: Fri, 22 Mar 2019 16:59:24 +0000 Subject: [PATCH] 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 --- rc/filetype/rust.kak | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rc/filetype/rust.kak b/rc/filetype/rust.kak index 9cbca842..b11c9da6 100644 --- a/rc/filetype/rust.kak +++ b/rc/filetype/rust.kak @@ -86,3 +86,8 @@ hook global WinSetOption filetype=rust %[ hook window InsertChar \} -group rust-indent rust-indent-on-closing-curly-brace hook -once -always window WinSetOption filetype=.* %{ remove-hooks window rust-.+ } ] + +# Configuration +# ‾‾‾‾‾‾‾‾‾‾‾‾‾ + +set window formatcmd 'rustfmt'