Configure racer

This commit is contained in:
Thomas Gideon 2017-09-09 13:02:44 -04:00
parent fae908697a
commit fc811c92d8
3 changed files with 12 additions and 0 deletions

9
racer.vim Normal file
View File

@ -0,0 +1,9 @@
set hidden
let g:racer_cmd = "/home/cmdln/.cargo/bin/racer"
au FileType rust nmap gd <Plug>(rust-def)
au FileType rust nmap gs <Plug>(rust-def-split)
au FileType rust nmap gx <Plug>(rust-def-vertical)
au FileType rust nmap <leader>gd <Plug>(rust-doc)

1
vimrc
View File

@ -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

View File

@ -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