diff options
author | Jesse Luehrs <doy@tozt.net> | 2021-02-21 16:25:39 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2021-02-21 16:25:39 -0500 |
commit | c48d61d0b6e81fc7366db9789e4d512b69852d51 (patch) | |
tree | 51f56475734679cd13fefc716b285550050fd83f /vim | |
parent | 0794edd2b2c186942198b4349605a492c083ee9c (diff) | |
download | conf-c48d61d0b6e81fc7366db9789e4d512b69852d51.tar.gz conf-c48d61d0b6e81fc7366db9789e4d512b69852d51.zip |
use go to definition for rust
Diffstat (limited to 'vim')
-rw-r--r-- | vim/ftplugin/rust.vim | 2 |
1 files changed, 2 insertions, 0 deletions
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 <buffer> <CR> :ALEGoToDefinition<CR> + if filereadable("Cargo.toml") compiler cargo setlocal makeprg=cargo\ build |