Browse Source

Update rust integration

coc
Schneider 6 years ago
parent
commit
813c2a026c
Signed by: schneider GPG Key ID: 3F50B02A50039F3B
  1. 6
      vim/ftplugin/rust.vim

6
vim/ftplugin/rust.vim

@ -1,6 +1,10 @@
let g:deoplete#sources#rust#racer_binary='/home/schneider/.cargo/bin/racer' 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 rust_root = system('rustc --print sysroot')[:-2]
let g:deoplete#sources#rust#rust_source_path=rust_root . '/lib/rustlib/src/rust/src'
let g:ale_fixers = {} let g:ale_fixers = {}
let g:ale_fixers['rust'] = ['rustfmt'] let g:ale_fixers['rust'] = ['rustfmt']
let g:ale_fix_on_save=1 let g:ale_fix_on_save=1
nnoremap <F5> :w<cr>:!cargo run<cr>
nnoremap <F6> :w<cr>:!cargo test<cr>
Loading…
Cancel
Save