mirror of
https://github.com/edu4rdshl/linuxscripts.git
synced 2026-07-17 23:24:52 +00:00
Update init.vim
This commit is contained in:
parent
4f763d9845
commit
db02008955
1 changed files with 10 additions and 1 deletions
|
|
@ -31,6 +31,9 @@ Plug 'vim-airline/vim-airline-themes'
|
||||||
" Auto pair
|
" Auto pair
|
||||||
Plug 'jiangmiao/auto-pairs'
|
Plug 'jiangmiao/auto-pairs'
|
||||||
|
|
||||||
|
" Completion for Rust
|
||||||
|
Plug 'sebastianmarkow/deoplete-rust'
|
||||||
|
|
||||||
" List ends here. Plugins become visible to Vim after this call.
|
" List ends here. Plugins become visible to Vim after this call.
|
||||||
call plug#end()
|
call plug#end()
|
||||||
|
|
||||||
|
|
@ -44,6 +47,12 @@ let g:deoplete#enable_at_startup = 1
|
||||||
let g:rustfmt_autosave = 1
|
let g:rustfmt_autosave = 1
|
||||||
let g:rust_clip_command = 'xclip -selection clipboard'
|
let g:rust_clip_command = 'xclip -selection clipboard'
|
||||||
|
|
||||||
|
" Enable autocompletion for Rust
|
||||||
|
let g:deoplete#sources#rust#racer_binary='/home/sechacklabs/.cargo/bin/racer'
|
||||||
|
let g:deoplete#sources#rust#rust_source_path='/home/sechacklabs/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/src'
|
||||||
|
let g:deoplete#sources#rust#disable_keymap=1
|
||||||
|
let g:deoplete#sources#rust#documentation_max_height=20
|
||||||
|
|
||||||
" Syntax and programming things
|
" Syntax and programming things
|
||||||
syntax on
|
syntax on
|
||||||
set guifont=Monospace\ Bold\ 12
|
set guifont=Monospace\ Bold\ 12
|
||||||
|
|
@ -109,4 +118,4 @@ set list " Show problematic characters.
|
||||||
|
|
||||||
" Also highlight all tabs and trailing whitespace characters.
|
" Also highlight all tabs and trailing whitespace characters.
|
||||||
highlight ExtraWhitespace ctermbg=darkgreen guibg=darkgreen
|
highlight ExtraWhitespace ctermbg=darkgreen guibg=darkgreen
|
||||||
match ExtraWhitespace /\s\+$\|\t/
|
match ExtraWhitespace /\s\+$\|\t/
|
||||||
Loading…
Add table
Add a link
Reference in a new issue