Skip to content

Latest commit

 

History

History
121 lines (100 loc) · 4.66 KB

README.org

File metadata and controls

121 lines (100 loc) · 4.66 KB

:lang ruby

Description

This module add Ruby and optional Ruby on Rails support to Emacs.

  • Code completion (doom-package:robe)
  • Syntax checking (doom-package:flycheck)
  • Jump-to-definitions (doom-package:robe)
  • Bundler
  • Rubocop integration (doom-package:flycheck)

Maintainers

  • @hlissner

Become a maintainer?

Module flags

+chruby
Enable chruby integration.
+lsp
Enable LSP support for ruby-mode. Requires doom-module::tools lsp and a langserver (supports solargraph).
+rails
Enable rails navigational commands, plus server+console integration.
+rbenv
Enable rbenv integration.
+rvm
Enable RVM (Ruby Version Manager) integration.
+tree-sitter
Leverages tree-sitter for better syntax highlighting and structural text editing. Requires doom-module::tools tree-sitter.

Packages

  • doom-package:bundler
  • doom-package:chruby if doom-module:+chruby
  • doom-package:company-inf-ruby if :completion company
  • doom-package:inf-ruby
  • doom-package:minitest
  • doom-package:rake
  • doom-package:rbenv if doom-module:+rbenv
  • doom-package:robe
  • doom-package:rspec-mode
  • doom-package:rubocop
  • doom-package:rvm if doom-module:+rvm
  • if doom-module:+rails
    • doom-package:inflections
    • doom-package:projectile-rails

Hacks

No hacks documented for this module.

Changelog

This module does not have a changelog yet.

Installation

Enable this module in your doom! block.

This module requires Ruby and the Rubocop gem. It is recommended you install both with some version manager (RVM or Rbenv).

These guides will help you install Ruby:

Then run $ gem install rubocop to install rubocop.

Usage

🔨 This module’s usage documentation is incomplete. Complete it?

Commands

robe

commandkey / ex commanddescription
robe-start<localleader> ’Open ruby lang server for auto-completions and jump to definitions
robe-rails-refresh<localleader> RRefresh the lang server.

projectile-rails

The projectile-rails prefix is <localleader> r:

commandkey / ex commanddescription
projectile-rails-console<localleader> r rOpen Rails console
projectile-rails-server<localleader> r ROpen Rails server
projectile-rails-find-model<localleader> r mFind any model of the project
projectile-rails-find-model<localleader> r MFind the model related of currently open resource

bundler

The bundler prefix is <localleader> b:

commandkey / ex commanddescription
bundle-install<localleader> b iRuns bundle install
bundle-update<localleader> b uRuns bundle update

rspec-mode

The rspec-mode prefix is <localleader> t:

commandkey / ex commanddescription
rspec-verifySPC m t vRuns rspec on current file
rspec-verify-methodSPC m t sRuns rspec for the item on cursor

Configuration

🔨 This module has no configuration documentation yet. Write some?

Troubleshooting

There are no known problems with this module. Report one?

Frequently asked questions

This module has no FAQs yet. Ask one?

Appendix

🔨 This module has no appendix yet. Write one?