From c48d61d0b6e81fc7366db9789e4d512b69852d51 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sun, 21 Feb 2021 16:25:39 -0500 Subject: use go to definition for rust --- vim/ftplugin/rust.vim | 2 ++ 1 file changed, 2 insertions(+) (limited to 'vim') diff --git a/vim/ftplugin/rust.vim b/vim/ftplugin/rust.vim index b642fad..292f008 100644 --- a/vim/ftplugin/rust.vim +++ b/vim/ftplugin/rust.vim @@ -5,6 +5,8 @@ let b:ale_fixers = { 'rust': ['rustfmt'] } let b:ale_fix_on_save = 1 let b:ale_rust_rustfmt_options = "--edition 2018" +map :ALEGoToDefinition + if filereadable("Cargo.toml") compiler cargo setlocal makeprg=cargo\ build -- cgit v1.2.3-54-g00ecf