Browse Source

Add settings for rust

coc
Schneider 6 years ago
parent
commit
67788a2b49
Signed by: schneider GPG Key ID: 3F50B02A50039F3B
  1. 2
      init.vim
  2. 6
      vim/ftplugin/rust.vim

2
init.vim

@ -8,8 +8,6 @@ if empty(glob("~/.config/nvim/autoload/plug.vim"))
endif
call plug#begin()
Plug 'VundleVim/Vundle.vim' " let Vundle manage Vundle, required
Plug 'tpope/vim-fugitive' " Git integration
Plug 'tpope/vim-sensible' " Defaults everyone can agree on
Plug 'tpope/vim-surround' " better handling of surrounding markers

6
vim/ftplugin/rust.vim

@ -0,0 +1,6 @@
let g:deoplete#sources#rust#racer_binary='/home/schneider/.cargo/bin/racer'
let g:deoplete#sources#rust#rust_source_path='/opt/rust-src/src/'
let g:ale_fixers = {}
let g:ale_fixers['rust'] = ['rustfmt']
let g:ale_fix_on_save=1
Loading…
Cancel
Save