From 735933f28ca2b2c08a498fd7e8421222538010b8 Mon Sep 17 00:00:00 2001 From: yushyin Date: Sat, 13 Feb 2016 16:11:55 +0100 Subject: Vim: Add vim-racer plugin --- vim/neobundle.toml | 4 ++++ vim/vimrc | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/vim/neobundle.toml b/vim/neobundle.toml index e16af5f..e971783 100644 --- a/vim/neobundle.toml +++ b/vim/neobundle.toml @@ -119,3 +119,7 @@ external_commands = 'hoogle' repository = 'rust-lang/rust.vim' lazy = 1 on_ft = 'rust' + +[[plugins]] +repository = 'racer-rust/vim-racer' +on_ft = 'rust' diff --git a/vim/vimrc b/vim/vimrc index 74dd1a5..9eea73a 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -74,6 +74,11 @@ if neobundle#tap('syntastic') let g:syntastic_warning_symbol = '?' call neobundle#untap() endif +if neobundle#tap('vim-racer') + function! neobundle#hooks.on_source(bundle) + let $RUST_SRC_PATH= $XDG_DATA_HOME . '/rustc_src_latest/src/' + endfunction +endif if neobundle#tap('base16-vim') set bg=dark let base16colorspace=256 -- cgit v1.2.3-24-g4f1b