Browse Source

Add dap-mode

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

64
.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)
#+END_SRC (setq lsp-ui-sideline-show-symbol nil))
#+END_SRC
(use-package lsp-ui
:commands lsp-ui-mode **** DAP
:after (flycheck lsp-mode)
:custom Debug Adapter Protocol.
(lsp-ui-doc-border (face-foreground 'default))
(lsp-ui-doc-enable nil) #+BEGIN_SRC emacs-lisp
(lsp-ui-doc-header t) (use-package treemacs
(lsp-ui-doc-include-signature t) :after all-the-icons
(lsp-ui-doc-position 'top) :hook (treemacs-mode . dot/hook-disable-line-numbers)
(lsp-ui-doc-use-childframe t) :config (setq treemacs-persist-file (concat dot-cache-dir "/treemacs/persist")))
(lsp-ui-flycheck-enable t)
(lsp-ui-flycheck-list-position 'right) (use-package dap-mode
(lsp-ui-flycheck-live-reporting t) :after (treemacs lsp-mode)
(lsp-ui-peek-enable nil) :hook (lsp-after-initialize . dot/dap-install-debug-adapters)
(lsp-ui-sideline-enable nil)) :config
(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
@ -1983,11 +1997,15 @@ General.el ~leader key binds.
Evaluated keybinds. Evaluated keybinds.
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(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