mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
dap-mode: set extensions variable to doom-cache
Previously, this would put the .extension directory in `user-emacs-directory' which in doom's case will be in the root of the doom directory. So, we move the directory to doom's etc dir and also name it something descriptive instead of 'extension'.
This commit is contained in:
@ -23,8 +23,10 @@
|
|||||||
(use-package! dap-mode
|
(use-package! dap-mode
|
||||||
:when (featurep! :tools lsp)
|
:when (featurep! :tools lsp)
|
||||||
:after lsp-mode
|
:after lsp-mode
|
||||||
:preface (setq dap--breakpoints-file (concat doom-etc-dir "dap-breakpoints"))
|
:preface
|
||||||
:init (add-hook 'dap-mode-hook #'dap-ui-mode) ; use a hook so users can remove it
|
(add-hook 'dap-mode-hook #'dap-ui-mode) ; use a hook so users can remove it
|
||||||
|
(setq dap--breakpoints-file (concat doom-etc-dir "dap-breakpoints")
|
||||||
|
dap-utils-extension-path (concat doom-etc-dir "dap-extension/"))
|
||||||
:config
|
:config
|
||||||
(dap-mode 1)
|
(dap-mode 1)
|
||||||
(dolist (module '(((:lang . cc) ccls dap-lldb dap-gdb-lldb)
|
(dolist (module '(((:lang . cc) ccls dap-lldb dap-gdb-lldb)
|
||||||
|
Reference in New Issue
Block a user