nvim: init.vim: Add rustdoc and format on autosave
Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
This commit is contained in:
parent
1e5b19d740
commit
09bf6ef4c4
1 changed files with 2 additions and 0 deletions
|
@ -63,6 +63,7 @@ Plug 'numirias/semshi', { 'do': ':UpdateRemotePlugins' }
|
||||||
Plug 'sebastianmarkow/deoplete-rust'
|
Plug 'sebastianmarkow/deoplete-rust'
|
||||||
Plug 'cespare/vim-toml', { 'for': 'rust' }
|
Plug 'cespare/vim-toml', { 'for': 'rust' }
|
||||||
Plug 'rust-lang/rust.vim', { 'for': 'rust' }
|
Plug 'rust-lang/rust.vim', { 'for': 'rust' }
|
||||||
|
Plug 'rhysd/rust-doc.vim', { 'for': 'rust' }
|
||||||
Plug 'mhinz/vim-crates'
|
Plug 'mhinz/vim-crates'
|
||||||
" Erlang Support
|
" Erlang Support
|
||||||
Plug 'vim-erlang/vim-erlang-tags'
|
Plug 'vim-erlang/vim-erlang-tags'
|
||||||
|
@ -360,6 +361,7 @@ call deoplete#custom#option('sources', {
|
||||||
let g:deoplete#sources#rust#disable_keymap = 1
|
let g:deoplete#sources#rust#disable_keymap = 1
|
||||||
let g:deoplete#sources#rust#racer_binary=expand('$HOME/.cargo/bin/racer')
|
let g:deoplete#sources#rust#racer_binary=expand('$HOME/.cargo/bin/racer')
|
||||||
let g:deoplete#sources#rust#rust_source_path=expand('$HOME/GitSources/rust/src')
|
let g:deoplete#sources#rust#rust_source_path=expand('$HOME/GitSources/rust/src')
|
||||||
|
let g:rustfmt_autosave = 1
|
||||||
" Required by Semshi
|
" Required by Semshi
|
||||||
let g:deoplete#auto_complete_delay = 100
|
let g:deoplete#auto_complete_delay = 100
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue