### Install Solargraph Gem Source: https://github.com/castwide/solargraph/blob/master/README.md Install the Solargraph gem using the standard RubyGems command. This is the primary method for installing Solargraph. ```shell gem install solargraph ``` -------------------------------- ### Install RBS Collection Source: https://github.com/castwide/solargraph/blob/master/README.md Install the community-supported RBS types for various gems. This command fetches and installs the type definitions. ```shell bundle exec rbs collection install ``` -------------------------------- ### Initialize RBS Collection Source: https://github.com/castwide/solargraph/blob/master/README.md Initialize the RBS collection for your project to manage RBS types for gems. This command sets up the necessary configuration files. ```shell bundle exec rbs collection init ``` -------------------------------- ### Configure RuboCop Version in .solargraph.yml Source: https://github.com/castwide/solargraph/blob/master/README.md Specify a particular RuboCop version for diagnostics and formatting within the .solargraph.yml configuration file. ```yaml --- reporters: - rubocop:version=0.61.0 # diagnostics formatter: rubocop: version: 0.61.0 # formatting ``` -------------------------------- ### Add Solargraph to Gemfile Source: https://github.com/castwide/solargraph/blob/master/README.md Add Solargraph as a development dependency in your project's Gemfile. This ensures Solargraph is available when running development tasks. ```ruby gem 'solargraph', group: :development ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.