From 6dce036874d75b2eca2ac48047120b571590de2c Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Mon, 20 Apr 2020 05:15:27 -0400 Subject: fix ale rustfmt --- vim/ftplugin/rust.vim | 1 + 1 file changed, 1 insertion(+) (limited to 'vim') diff --git a/vim/ftplugin/rust.vim b/vim/ftplugin/rust.vim index 2e527e8..b642fad 100644 --- a/vim/ftplugin/rust.vim +++ b/vim/ftplugin/rust.vim @@ -3,6 +3,7 @@ let b:ale_rust_rls_toolchain = 'stable' let b:ale_rust_rls_config = { 'rust': { 'clippy_preference': 'on' } } let b:ale_fixers = { 'rust': ['rustfmt'] } let b:ale_fix_on_save = 1 +let b:ale_rust_rustfmt_options = "--edition 2018" if filereadable("Cargo.toml") compiler cargo -- cgit v1.2.3-54-g00ecf