Load dap-mode after lsp-mode manually
:after complicates use-package load-order of its keywords, making it difficult for users to guess how to remove the dap-tooltip-mode :hook. We'll just do it ourselves.
This commit is contained in:
parent
8fdfc8d633
commit
f6aa50e1bc
1 changed files with 2 additions and 3 deletions
|
@ -105,11 +105,10 @@
|
||||||
(use-package! dap-mode
|
(use-package! dap-mode
|
||||||
:when (and (featurep! +lsp) (not (featurep! :tools lsp +eglot)))
|
:when (and (featurep! +lsp) (not (featurep! :tools lsp +eglot)))
|
||||||
:hook (dap-mode . dap-tooltip-mode)
|
:hook (dap-mode . dap-tooltip-mode)
|
||||||
:after lsp-mode
|
:init
|
||||||
:demand t
|
|
||||||
:preface
|
|
||||||
(setq dap-breakpoints-file (concat doom-etc-dir "dap-breakpoints")
|
(setq dap-breakpoints-file (concat doom-etc-dir "dap-breakpoints")
|
||||||
dap-utils-extension-path (concat doom-etc-dir "dap-extension/"))
|
dap-utils-extension-path (concat doom-etc-dir "dap-extension/"))
|
||||||
|
(after! lsp-mode (require 'dap-mode))
|
||||||
:config
|
:config
|
||||||
(pcase-dolist (`((,category . ,modules) :after ,after :require ,libs)
|
(pcase-dolist (`((,category . ,modules) :after ,after :require ,libs)
|
||||||
+debugger--dap-alist)
|
+debugger--dap-alist)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue