summaryrefslogtreecommitdiffstats
path: root/vim
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2021-02-21 16:25:39 -0500
committerJesse Luehrs <doy@tozt.net>2021-02-21 16:25:39 -0500
commitc48d61d0b6e81fc7366db9789e4d512b69852d51 (patch)
tree51f56475734679cd13fefc716b285550050fd83f /vim
parent0794edd2b2c186942198b4349605a492c083ee9c (diff)
downloadconf-c48d61d0b6e81fc7366db9789e4d512b69852d51.tar.gz
conf-c48d61d0b6e81fc7366db9789e4d512b69852d51.zip
use go to definition for rust
Diffstat (limited to 'vim')
-rw-r--r--vim/ftplugin/rust.vim2
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