Interactive setup for Ruby LSP development environment
Sets up ruby-lsp, RuboCop, and testing/security gems for Ruby development. Use this to configure your environment for code intelligence, linting, and security scanning in Claude Code.
/plugin marketplace add zircote/ruby-lsp/plugin install ruby-lsp@zircote-lspThis command will configure your Ruby development environment with ruby-lsp and essential tools.
First, verify Ruby is installed:
ruby --version
gem --version
gem install ruby-lsp
# Linting and formatting
gem install rubocop
# Security scanning
gem install bundler-audit brakeman
# Testing
gem install rspec
ruby-lsp --version
rubocop --version
export ENABLE_LSP_TOOL=1
Test the LSP integration:
# Create a test file
echo 'def greet(name) = "Hello, #{name}!"' > test_lsp.rb
# Run RuboCop
rubocop test_lsp.rb
# Clean up
rm test_lsp.rb