Dap-mode configuration
This commit is contained in:
parent
bc966c5617
commit
83b1fe593d
19
init.el
19
init.el
|
@ -288,7 +288,24 @@
|
|||
(use-package lsp-treemacs
|
||||
:hook (lsp-mode . lsp-treemacs-sync-mode))
|
||||
|
||||
(use-package dap-mode)
|
||||
(use-package dap-mode
|
||||
:bind (:map lsp-command-map ("d" . dap-hydra))
|
||||
:custom
|
||||
(dap-auto-configure-mode t)
|
||||
(dap-auto-configure-features '(sessions locals breakpoints expressions tooltip))
|
||||
:config
|
||||
(add-hook 'dap-stopped-hook (lambda (arg) (call-interactively #'dap-hydra)))
|
||||
(require 'dap-cpptools)
|
||||
(dap-register-debug-template
|
||||
"Automatic C++ debug"
|
||||
(list :type "cppdbg"
|
||||
:request "launch"
|
||||
:name "Automatic C++ debug"
|
||||
:MIMode "gdb"
|
||||
:dap-compilation "CXXFLAGS='-g' make '${fileBasenameNoExtension}'"
|
||||
:program "${workspaceFolder}/${fileBasenameNoExtension}"
|
||||
:cwd "${workspaceFolder}"
|
||||
:args ["<" "${workspaceFolder}/${fileBasenameNoExtension}.in"])))
|
||||
|
||||
(use-package yasnippet
|
||||
:config
|
||||
|
|
Loading…
Reference in a new issue