Configure racer
This commit is contained in:
parent
fae908697a
commit
fc811c92d8
3 changed files with 12 additions and 0 deletions
9
racer.vim
Normal file
9
racer.vim
Normal 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
1
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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue