From 1af53a1c96af052df05c18b4d7a21cf6a2c364ce Mon Sep 17 00:00:00 2001 From: lanxu Date: Sat, 22 Dec 2018 11:28:01 +0200 Subject: [PATCH] Support for rust programming --- .vimrc | 8 +++++--- .zprofile | 3 +++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.vimrc b/.vimrc index 2a952d5..3dd16fa 100644 --- a/.vimrc +++ b/.vimrc @@ -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 diff --git a/.zprofile b/.zprofile index 3304bec..3f1e080 100644 --- a/.zprofile +++ b/.zprofile @@ -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"