From fc811c92d89fe145a28471865b29b563d791b26d Mon Sep 17 00:00:00 2001 From: Thomas Gideon Date: Sat, 9 Sep 2017 13:02:44 -0400 Subject: [PATCH] Configure racer --- racer.vim | 9 +++++++++ vimrc | 1 + vundle.vim | 2 ++ 3 files changed, 12 insertions(+) create mode 100644 racer.vim diff --git a/racer.vim b/racer.vim new file mode 100644 index 0000000..88e24e8 --- /dev/null +++ b/racer.vim @@ -0,0 +1,9 @@ +set hidden +let g:racer_cmd = "/home/cmdln/.cargo/bin/racer" + +au FileType rust nmap gd (rust-def) +au FileType rust nmap gs (rust-def-split) +au FileType rust nmap gx (rust-def-vertical) +au FileType rust nmap gd (rust-doc) + + diff --git a/vimrc b/vimrc index 0de75fd..b33a8ab 100644 --- a/vimrc +++ b/vimrc @@ -14,6 +14,7 @@ source syntastic.vim source unite.vim source mapping.vim source jsonnet.vim +source racer.vim exec "cd " . oldwd " turn on file type plugins diff --git a/vundle.vim b/vundle.vim index 6321bed..08a11f2 100644 --- a/vundle.vim +++ b/vundle.vim @@ -53,6 +53,8 @@ Plugin 'timonv/vim-cargo' Plugin 'drmikehenry/vim-fontsize' " support for jsonnet Plugin 'google/vim-jsonnet' +" support for racer +Plugin 'racer-rust/vim-racer' " All of your Plugins must be added before the following line call vundle#end() " required