Ruby code completion.
Switch branches/tags
Nothing to show
Clone or download
osyo-manga Merge pull request #18 from thinca/use-option-variable-for-solargraph…
…-command

Use g:monster#completion#solargraph#complete_command
Latest commit cdd104c Mar 17, 2018
Permalink
Failed to load latest commit information.
after/ftplugin/ruby Refactoring all. Aug 15, 2014
autoload Use g:monster#completion#solargraph#complete_command Feb 17, 2018
doc Update doc Feb 2, 2018
plugin Improve debug log. Aug 7, 2014
README.md Update doc Feb 2, 2018

README.md

monster.vim

Ruby のコード補完プラグイン

Requirement

どちらかをインストールします。

  • gem
  • gem install rcodetools
  • gem install solargraph

solargraph を使う場合は以下を設定します。

let g:monster#completion#backend = 'solargraph'

Screencapture

monster

Using

<C-x><C-o> でコード補完を開始します。

Setting

" Use neocomplete.vim
let g:neocomplete#sources#omni#input_patterns = {
\   "ruby" : '[^. *\t]\.\w*\|\h\w*::',
\}

Setting by async completion

" Set async completion.
let g:monster#completion#rcodetools#backend = "async_rct_complete"
" Or let g:monster#completion#solargraph#backend = "async_solargraph_suggest"

" With neocomplete.vim
let g:neocomplete#sources#omni#input_patterns = {
\   "ruby" : '[^. *\t]\.\w*\|\h\w*::',
\}

" With deoplete.nvim
let g:monster#completion#rcodetools#backend = "async_rct_complete"
" Or let g:monster#completion#solargraph#backend = "async_solargraph_suggest"
let g:deoplete#sources#omni#input_patterns = {
\   "ruby" : '[^. *\t]\.\w*\|\h\w*::',
\}