Coc-solargraph

From wikinotes
Revision as of 15:41, 28 December 2021 by Will (talk | contribs) (→‎Install)

COC LSPP extension built overtop of ruby solargraph.


NOTE:

ctrl+space triggers coc completion.
ctrl+n/p will continue to use vim's builtin keyword completion.

Documentation

github https://github.com/neoclide/coc-solargraph
solargraph homepage https://github.com/castwide/solargraph

Tutorials

solagraph w/ rails http://iftheshoefritz.com/code%20completion/intellisense/rails/ruby/vscode/emacs/2020/06/18/rails-code-completion-with-lsp-and-solargraph.html

Install

gem install neovim
gem install solargraph
gem install solargraph-rails --pre  # if using rails
:CocInstall coc-solargraph   " uses solargraph on backend

For each project:

# add docs from project's gems to solargraph
solargraph bundle

Make sure to see ruby solargraph instructions for additional optimizations.