Browse Source

Add Rust completion with 'racer' to vim

Frans Bergman 5 years ago
parent
commit
708ad22179
2 changed files with 2 additions and 0 deletions
  1. 1 0
      .config/nvim/init.vim
  2. 1 0
      .profile

+ 1 - 0
.config/nvim/init.vim

@@ -118,6 +118,7 @@ call plug#end()
 " ########## Plugin Settings ########## {{{
 autocmd FileType java setlocal omnifunc=javacomplete#Complete
 call neomake#configure#automake('nrwi', 500)
+let g:completor_racer_binary = '~/.cargo/bin/racer'
 
 " Use TAB to complete when typing words, else inserts TABs as usual.  Uses
 " dictionary, source files, and completor to find matching words to complete.

+ 1 - 0
.profile

@@ -5,6 +5,7 @@
 #umask 022
 
 export GOPATH="$HOME/go"
+export RUST_SRC_PATH="$(rustc --print sysroot)/lib/rustlib/src/rust/src"
 export PATH="/usr/lib/distcc/bin:$PATH:$HOME/.cargo/bin:$GOPATH/bin:$HOME/.scripts:$HOME/bin"
 export BROWSER="firefox"
 export READER="zathura"