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:
parent
ad882c3370
commit
ae7f65acd8
|
@ -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'
|
||||||
|
|
Loading…
Reference in New Issue
Block a user