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:
parent
14c87e6943
commit
b8948aa6ef
1 changed files with 4 additions and 2 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue