From b0d9d158b76c307f3947b61d6fe77c79d8423705 Mon Sep 17 00:00:00 2001 From: jdlugosz963 Date: Fri, 12 Aug 2022 22:40:56 +0200 Subject: Add dap mode --- Emacs.org | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/Emacs.org b/Emacs.org index 701f313..fa2dbdf 100644 --- a/Emacs.org +++ b/Emacs.org @@ -39,6 +39,7 @@ - [[#languages][Languages]] - [[#lsp][Lsp]] - [[#python][Python]] + - [[#dap-mode][Dap mode]] - [[#projectile][Projectile]] - [[#keybinds][Keybinds]] - [[#magit][Magit]] @@ -452,6 +453,29 @@ #+end_src +** Dap mode + +#+begin_src emacs-lisp + + (use-package dap-mode + ;; Uncomment the config below if you want all UI panes to be hidden by default! + ;; :custom + ;; (lsp-enable-dap-auto-configure nil) + ;; :config + ;; (dap-ui-mode 1) + :commands dap-debug + :config + ;; Set up Node debugging + (require 'dap-node) + (dap-node-setup) ;; Automatically installs Node debug adapter if needed + + ;; Bind `C-c l d` to `dap-hydra` for easy access + (general-define-key + :keymaps 'lsp-mode-map + :prefix lsp-keymap-prefix + "d" '(dap-hydra t :wk "debugger"))) + +#+end_src ** Projectile -- cgit v1.2.3