From e084489261e7ed01e35301194f441d15c36711dd Mon Sep 17 00:00:00 2001 From: Devon Tingley Date: Tue, 7 Mar 2023 08:00:03 -0500 Subject: [PATCH] Install rust debug config --- doom/config.el | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/doom/config.el b/doom/config.el index 971703a..2c36752 100644 --- a/doom/config.el +++ b/doom/config.el @@ -83,9 +83,6 @@ (add-to-list 'TeX-command-list '("Tectonic" "tectonic %s.tex" TeX-run-command nil t))) -(after! (lsp-volar) -(setq lsp-typescript-tsdk (file-name-directory (lsp-volar-get-typescript-server-path)))) - ;; dap-mode config (after! dap-mode ;; Golang @@ -95,6 +92,17 @@ (require 'dap-python) (setq dap-python-debugger 'debugpy) + ;; Rust + (require 'dap-cpptools) + (require 'dap-gdb-lldb) + (dap-register-debug-template + "Rust::GDB Run Configuration" + (list :type "gdb" + :request "launch" + :name "GDB::Run" + :gdbpath "rust-gdb" + :cwd nil)) + ;; Elixir (load! "dap-elixir"))