Support for rust programming

This commit is contained in:
lanxu 2018-12-22 11:28:01 +02:00
parent f6b140f417
commit 1af53a1c96
2 changed files with 8 additions and 3 deletions

8
.vimrc
View File

@ -12,11 +12,11 @@ Plug 'sheerun/vim-polyglot'
Plug 'vim-scripts/DoxygenToolkit.vim', {'for': 'cpp'}
" Rust
Plug 'rust-lang/rust.vim', {'for': 'rust'}
Plug 'racer-rust/vim-racer', {'for': 'rust'}
"Plug 'racer-rust/vim-racer', {'for': 'rust'}
" Syntax checking
"Plug 'Valloric/YouCompleteMe' " alternative #1, full-blown
Plug 'w0rp/ale',
Plug 'Valloric/YouCompleteMe' " alternative #1, full-blown
"Plug 'w0rp/ale',
" Useful plugins
Plug 'Raimondi/delimitMate'
@ -152,3 +152,5 @@ let g:ale_linters = {
\ 'javascript': ['standard'],
\ 'vue': ['standard --plugin html "**/*.{js,vue}"']
\}
let g:racer_experimental_completer = 1
set completeopt+=preview

View File

@ -50,3 +50,6 @@ export PATH="$NPM_PACKAGES/bin:$PATH"
# LUA
#export LUA_PATH='/home/lanxu/.luarocks/share/lua/5.3/?.lua;/home/lanxu/.luarocks/share/lua/5.3/?/init.lua;/usr/share/lua/5.3/?.lua;/usr/share/lua/5.3/?/init.lua;/usr/lib/lua/5.3/?.lua;/usr/lib/lua/5.3/?/init.lua;./?.lua;./?/init.lua'
#export LUA_CPATH='/home/lanxu/.luarocks/lib/lua/5.3/?.so;/usr/lib/lua/5.3/?.so;/usr/lib/lua/5.3/loadall.so;./?.so'
# Rust
export PATH="${HOME}/.cargo/bin:$PATH"