lang/ruby: Add rubocop binds
This commit is contained in:
parent
6b1265ae5a
commit
12b32d6208
1 changed files with 8 additions and 1 deletions
|
@ -74,7 +74,14 @@ environment variables."
|
||||||
(global-rbenv-mode))
|
(global-rbenv-mode))
|
||||||
|
|
||||||
(def-package! rubocop
|
(def-package! rubocop
|
||||||
:hook (enh-ruby-mode . rubocop-mode))
|
:hook (enh-ruby-mode . rubocop-mode)
|
||||||
|
:config
|
||||||
|
(map! :map rubocop-mode
|
||||||
|
:localleader
|
||||||
|
:nv "f" #'rubocop-check-current-file
|
||||||
|
:nv "F" #'rubocop-autocorrect-current-file
|
||||||
|
:nv "p" #'rubocop-check-project
|
||||||
|
:nv "P" #'rubocop-autocorrect-project))
|
||||||
|
|
||||||
;; FIXME: Clean up all processes from this/inf-ruby when all the ruby buffers
|
;; FIXME: Clean up all processes from this/inf-ruby when all the ruby buffers
|
||||||
;; are closed
|
;; are closed
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue