Make ruby layer load dap layer when lsp is used as backend

Before the ruby layer was only requiring standalone lsp layer,
however with the latest changes dap support has been added
therefore I have updated the layer file to require the full
dap layer instead which in turn requires the lsp layer.
This commit is contained in:
Maximilian Wolff 2019-12-21 23:41:04 +01:00
parent 82d4df4b0f
commit 0c774416d7
No known key found for this signature in database
GPG key ID: 2DD07025BFDBD89A
2 changed files with 33 additions and 33 deletions

View file

@ -11,4 +11,4 @@
(when (and (boundp 'ruby-backend)
(eq ruby-backend 'lsp))
(configuration-layer/declare-layer-dependencies '(lsp)))
(configuration-layer/declare-layer-dependencies '(dap)))

View file

@ -9,36 +9,36 @@
;;
;;; License: GPLv3
(setq ruby-packages
'(
bundler
chruby
company
counsel-gtags
dap-mode
(enh-ruby-mode :toggle ruby-enable-enh-ruby-mode)
evil-matchit
flycheck
ggtags
helm-gtags
minitest
org
popwin
rake
rbenv
robe
rspec-mode
rubocop
rubocopfmt
ruby-hash-syntax
(ruby-mode :location built-in :toggle (not ruby-enable-enh-ruby-mode))
ruby-refactor
ruby-test-mode
ruby-tools
rvm
seeing-is-believing
smartparens
))
(defconst ruby-packages
'(
bundler
chruby
company
counsel-gtags
dap-mode
(enh-ruby-mode :toggle ruby-enable-enh-ruby-mode)
evil-matchit
flycheck
ggtags
helm-gtags
minitest
org
popwin
rake
rbenv
robe
rspec-mode
rubocop
rubocopfmt
ruby-hash-syntax
(ruby-mode :location built-in :toggle (not ruby-enable-enh-ruby-mode))
ruby-refactor
ruby-test-mode
ruby-tools
rvm
seeing-is-believing
smartparens
))
(defun ruby/init-bundler ()
(use-package bundler
@ -179,8 +179,8 @@
(dolist (hook '(ruby-mode-hook enh-ruby-mode-hook))
(add-hook hook 'robe-mode))
(spacemacs/add-to-hooks 'robe-jump
'(spacemacs-jump-handlers-ruby-mode
spacemacs-jump-handlers-enh-ruby-mode)))
'(spacemacs-jump-handlers-ruby-mode
spacemacs-jump-handlers-enh-ruby-mode)))
:config
(progn
(spacemacs|hide-lighter robe-mode)