Skip to content

Ruby (Solargraph)#

Server#

For more information about the LSP server, check solargraph.

Installation#

gem install solargraph

Debugger: Yes#

Available configurations#

lsp-solargraph-autoformat#

Type: boolean

Default: nil

Enable automatic formatting while typing (WARNING: experimental)


lsp-solargraph-completion#

Type: boolean

Default: t

Enable completion


lsp-solargraph-definitions#

Type: boolean

Default: t

Enable definitions (go to, etc.)


lsp-solargraph-diagnostics#

Type: boolean

Default: t

Enable diagnostics


lsp-solargraph-folding#

Type: boolean

Default: t

Enable folding ranges


lsp-solargraph-formatting#

Type: boolean

Default: t

Enable document formatting


lsp-solargraph-hover#

Type: boolean

Default: t

Enable hover


lsp-solargraph-library-directories#

Type: (repeat string)

Default: (~/.rbenv/ /usr/lib/ruby/ ~/.rvm/ ~/.gem/)

List of directories which will be considered to be libraries.


lsp-solargraph-log-level#

Type: (choice (const :tag warn info debug))

Default: warn

Level of debug info to log. warn is least and debug is most.


lsp-solargraph-multi-root#

Type: boolean

Default: t

If non nil, solargraph will be started in multi-root mode.


lsp-solargraph-references#

Type: boolean

Default: t

Enable finding references


lsp-solargraph-rename#

Type: boolean

Default: t

Enable symbol renaming


lsp-solargraph-server-command#

Type: (repeat string)

Default: (solargraph stdio)

Command to start Solargraph Ruby language server.


lsp-solargraph-symbols#

Type: boolean

Default: t

Enable symbols


lsp-solargraph-use-bundler#

Type: boolean

Default: nil

Run solargraph under bundler



Last update: April 27, 2024