asyncomplete-racer.vim

September 10, 2017 ยท View on GitHub

Provide Racer support for asyncomplete.vim.

Installation

  • Install Rust source code and Racer (assuming you have already installed Rust via rustup):
rustup component add rust-src
cargo install racer
  • Install this plugin and its dependencies: async.vim and asyncomplete.vim
  • Append your Vim configuration file:
autocmd User asyncomplete_setup call asyncomplete#register_source(
    \ asyncomplete#sources#racer#get_source_options())

Configuration

This plugin can be further configured by passing a dictionary to asyncomplete#sources#racer#get_source_options() like this:

autocmd User asyncomplete_setup call asyncomplete#register_source(
    \ asyncomplete#sources#racer#get_source_options({
    \     'config': {
    \         'racer_path': ''
    \     }
    \ }))
OptionDefault ValueExplanation
config.racer_path'racer'Path to the racer binary. If racer cannot be found in PATH, you must specify this manually.

License

See LICENSE.