Browse Source

Add dap-mode

master
Riyyi 3 years ago
parent
commit
68ef4776a0
  1. 54
      .config/emacs/config.org

54
.config/emacs/config.org

@ -32,6 +32,7 @@
- [[#company][Company]] - [[#company][Company]]
- [[#flycheck][Flycheck]] - [[#flycheck][Flycheck]]
- [[#lsp][LSP]] - [[#lsp][LSP]]
- [[#dap][DAP]]
- [[#yasnippet][YASnippet]] - [[#yasnippet][YASnippet]]
- [[#cc][C/C++]] - [[#cc][C/C++]]
- [[#lua][Lua]] - [[#lua][Lua]]
@ -63,6 +64,7 @@
- [[#package-functions][Package Functions]] - [[#package-functions][Package Functions]]
- [[#auto-package-update-functions][Auto Package Update Functions]] - [[#auto-package-update-functions][Auto Package Update Functions]]
- [[#centaur-tabs-functions][Centaur Tabs Functions]] - [[#centaur-tabs-functions][Centaur Tabs Functions]]
- [[#dap-functions][DAP Functions]]
- [[#dashboard-functions][Dashboard Functions]] - [[#dashboard-functions][Dashboard Functions]]
- [[#evil-functions][Evil functions]] - [[#evil-functions][Evil functions]]
- [[#lsp-functions][LSP Functions]] - [[#lsp-functions][LSP Functions]]
@ -611,24 +613,31 @@ Language Server Protocol.
(setq lsp-ui-flycheck-list-position 'right) (setq lsp-ui-flycheck-list-position 'right)
(setq lsp-ui-flycheck-live-reporting t) (setq lsp-ui-flycheck-live-reporting t)
(setq lsp-ui-peek-enable nil) (setq lsp-ui-peek-enable nil)
(setq lsp-ui-sideline-enable nil)) (setq lsp-ui-sideline-enable nil)
(setq lsp-ui-sideline-show-symbol nil))
#+END_SRC #+END_SRC
(use-package lsp-ui **** DAP
:commands lsp-ui-mode
:after (flycheck lsp-mode) Debug Adapter Protocol.
:custom
(lsp-ui-doc-border (face-foreground 'default)) #+BEGIN_SRC emacs-lisp
(lsp-ui-doc-enable nil) (use-package treemacs
(lsp-ui-doc-header t) :after all-the-icons
(lsp-ui-doc-include-signature t) :hook (treemacs-mode . dot/hook-disable-line-numbers)
(lsp-ui-doc-position 'top) :config (setq treemacs-persist-file (concat dot-cache-dir "/treemacs/persist")))
(lsp-ui-doc-use-childframe t)
(lsp-ui-flycheck-enable t) (use-package dap-mode
(lsp-ui-flycheck-list-position 'right) :after (treemacs lsp-mode)
(lsp-ui-flycheck-live-reporting t) :hook (lsp-after-initialize . dot/dap-install-debug-adapters)
(lsp-ui-peek-enable nil) :config
(lsp-ui-sideline-enable nil)) (setq dap-auto-configure-features '(sessions locals expressions controls tooltip))
(setq dap-breakpoints-file (concat dot-cache-dir "/dap/breakpoints"))
(setq dap-utils-extension-path (concat dot-cache-dir "/dap"))
;; Create dap extension directory
(unless (file-directory-p dap-utils-extension-path)
(make-directory dap-utils-extension-path t)))
#+END_SRC #+END_SRC
**** YASnippet **** YASnippet
@ -1717,6 +1726,11 @@ Set keybinds to functionality of installed packages.
"r" #'dot/dashboard-goto-recent-files "r" #'dot/dashboard-goto-recent-files
) )
;; Dap
(general-def 'normal dap-ui-session-mode-map
"D" #'dap-ui-delete-session
)
;; Deft ;; Deft
(general-def 'normal deft-mode-map (general-def 'normal deft-mode-map
[down-mouse-1] #'widget-button-click [down-mouse-1] #'widget-button-click
@ -1986,8 +2000,12 @@ Evaluated keybinds.
(with-eval-after-load 'lsp-mode (with-eval-after-load 'lsp-mode
(space-leader lsp-mode-map (space-leader lsp-mode-map
"l" lsp-command-map "l" lsp-command-map
) ))
)
(with-eval-after-load 'dap-mode
(space-leader lsp-mode-map
"l d" '(dap-hydra :which-key "DAP hydra")
))
#+END_SRC #+END_SRC
Source: Source:

Loading…
Cancel
Save