The FactoryBot add-on is a Ruby LSP add-on for extra FactoryBot editor features.
If you haven't already done so, you'll need to first set up Ruby LSP.
Add the following to your application's Gemfile:
# Gemfile
gem "ruby-lsp-factory_bot", require: false, group: :development
run bundle install
and restart Ruby LSP server.
- Go-to-definition for factories
- Go-to-definition for factory traits
- Completions for factories and traits
The gem is available as open source under the terms of the MIT License.