一个 Ruby 语言服务器。
Solargraph 提供了一套全面的 Ruby 编程工具:智能提示、诊断、内联文档和类型检查。
Solargraph 自动完成功能的基于 Web 的演示可在 https://solargraph.org/demo. 中查看。
从命令行安装 gem: gem install solargraph 或者将其添加到您的 Gemfile 中: gem 'solargraph', 组: :development
以下编辑器提供了插件和扩展:
Visual Studio Code
扩展名: https://marketplace.visualstudio.com/items?itemName=castwide.solargraph
Sublime Text
Vim
GitHub: nvim-lspconfig, https://github.com/neovim/nvim-lspconfig/blob/master/doc/configs.md#solargraph
GitHub: LanguageClient-neovim, https://github.com/autozimu/LanguageClient-neovim
GitHub: coc, https://github.com/neoclide/coc-solargraph
GitHub: Vim-EasyComplete, https://github.com/jayli/vim-easycomplete
Emacs
GitHub: eglot.el, https://github.com/joaotavora/eglot
GitHub: lsp-mode.el, https://github.com/emacs-lsp/lsp-mode
Eclipse
Solargraph 的行为可以通过可选的 配置文件 来控制。优先级最高的文件是位于项目根目录的 .solargraph.yml 文件。如果不存在该文件,则会应用位于 ~/.config/solargraph/config.yml 的全局配置。全局配置的路径可以通过 SOLARGRAPH_GLOBAL_CONFIG 环境变量来覆盖。
暂无开放 Issues,或尚未同步最近议题。