-
Native Installation
No extra configuration requied
-
Docker based Installation
- Go to Settings
- Search "solargraph"
- Look for "Solargraph: External Server"
- Click "Edit settings.json"
- In the JSON, add this details
{ .... "solargraph.externalServer": { "host": "localhost", "port": 3002 } }
Install LSP package in Sublime Text Editor by Type Ctrl+Shift+P > Install Package > Search & Install LSP
- Native Installation
Go to Preferences > Package Settings > LSP > Settings
and paste this configuration
{
"clients": {
"ruby": {
"enabled": true,
"command": ["solargraph", "stdio"],
"selector": "source.ruby | text.html.ruby",
"initializationOptions": {
"diagnostics": false
}
}
}
}
- Docker baser Installation
Go to Preferences > Package Settings > LSP > Settings
and paste this configuration
{
"clients": {
"ruby": {
"enabled": true,
"selector": "source.ruby | text.html.ruby",
"tcp_port": 3002,
"initializationOptions": {
"diagnostics": false
}
}
}
}
-
Native Installation
a. With Native LSP Package Install
lspconfig
in NeovimOpen config file [~/.config/nvim/init.lua] and paste this
require'lspconfig'.solargraph.setup{}
b. With CoC-nvim Install
coc-solargraph
by coc-nvim by running this command:CocInstall coc-solargraph
-
Docker Based Installation
a. Install coc-nvim
b. Install
coc-solargraph
by coc-nvim by running this command:CocInstall coc-solargraph
c. Edit configuration by
:CocConfig
Paste this configuration. Save & Restart nvim{ "solargraph.transport": "external", "solargraph.externalServer": { "host": "localhost", "port": 3002 } }
To configure Solargraph for Other IDE, Check this docs for guide