Commit Graph

39 Commits

Author SHA1 Message Date
a7c58380fa Add dap-cpptools to auto-requires of dap for rust
dap-cpptools is, for the time being, the recommended way of setting up 
dap-mode with Rust.
2021-07-18 16:02:41 +02:00
9218473c7c Fix #4865: fix deprecation notice on define-minor-mode 2021-04-15 18:59:31 -04:00
a724771d1e Merge pull request #4708 from he-la/develop
Fix +debug/start for dap-based debuggers.
2021-03-05 20:14:11 -05:00
6127d15cea tools/debugger: use realgud:trepanpl for raku-mode 2021-03-05 20:09:22 -05:00
8c33866b21 Forgot to add use-package! for projectile-variable 2021-02-28 23:07:27 +01:00
f6aa50e1bc Load dap-mode after lsp-mode manually
:after complicates use-package load-order of its keywords, making it
difficult for users to guess how to remove the dap-tooltip-mode :hook.
We'll just do it ourselves.
2020-10-10 13:50:57 -04:00
e2658052af tools/debugger: fix rust debugger
Was waiting for rust-mode, when it should be waiting for rustic-mode.
2020-09-19 14:22:52 -04:00
95c6c83a76 Fix #3798: fix keymap typo for +dap-running-session-mode 2020-08-21 15:49:39 -04:00
bf4929f4df Fix #3760: bind SPC m d only when debugger is active 2020-08-20 17:23:45 -04:00
aba2dcaf11 tools/debugger: bind SPC m d to dap-hydra
Closes #2955
2020-08-06 00:22:39 -04:00
3afee78c8b tools/debugger: fix file-missing dap-ui-mode error 2020-08-06 00:22:39 -04:00
d9fd738ba6 Fix #3695: load lsp-java for dap-mode 2020-08-05 19:26:59 -04:00
b08f9c607d Fix #3671: some dap-mode libs not loading 2020-08-02 13:57:06 -04:00
318b3ef238 tools/debugger: refactor dap lib loader 2020-08-01 15:15:59 -04:00
8b81c4c72a Fix #3657: remove dap-java reference
It was removed upstream (and moved to lsp-java).
2020-07-31 03:18:09 -04:00
3e5b7cce3f [eglot] Add support for eglot lsp client in emacs
- Update README
- Add eglot-specifics to cc, rs, py, hs
  removing unused lsp-mode packages when eglot is active
- Add eglot-specific bindings
- Add doctor warnings for debugger +lsp and +peek
- Add eglot-backed lookup-handlers
- Add flycheck checker using eglot for :checkers
  syntax users (using flycheck/flycheck#1676 and
  flycheck/flycheck#1592 discussion).
  This implementation is based on @marsam code, and uses recent
  Flycheck development in order to make the code smaller and
  easier to maintain.
2020-05-28 09:34:10 +02:00
95824c5054 obviate helper function with after! 2020-05-14 17:40:59 -04:00
7f201fc13e Following doom style guide 2020-05-12 11:31:03 -04:00
cdd5e3931f activating dap web modules in TS mode 2020-05-12 10:19:15 -04:00
09f617de8b tools/debugger: move dap-mode behind +lsp flag
+ To make this consistent with other opt-in LSP integration
+ Install posframe for dap-ui-mode to work (#2934)

Fixes #2934
2020-04-18 20:22:40 -04:00
51944fae01 Refactor dap-mode and fix config load order
Now doom's defaults will run *before* a user's after! or use-package!
blocks for dap-mode.
2020-04-17 22:03:47 -04:00
dd402b7db3 Remove references to enh-ruby-mode 2020-03-12 11:29:54 -04:00
176be128ef gdb-show-main = gdb-many-windows = t 2020-02-16 02:26:38 -05:00
7541611863 Fix garbage minibuffer history when launching debugger
9a93aa1df9 (commitcomment-36934820)
2020-01-23 10:22:04 -06:00
eba070d8ba Move dap-breakpoints-file to doom etc dir #2273 2019-12-30 05:26:57 -05:00
adc8cba14b Revise docstrings & minor reformatting 2019-12-26 01:41:44 -05:00
b8948aa6ef dap-mode: set extensions variable to doom-cache
Previously, this would put the .extension directory in
`user-emacs-directory' which in doom's case will be in the root of the
doom directory.

So, we move the directory to doom's etc dir and also name it something
descriptive instead of 'extension'.
2019-12-24 16:56:07 -08:00
e0bd046339 tools/debugger: fix dap-mode not loading after lsp-mode 2019-12-20 04:17:45 -05:00
9a93aa1df9 tools/debugger: fix invalid-function "..." error
...when invoking debugger, due to minibuffer-history being evaluated for
some reason.
2019-11-25 18:39:51 -05:00
8129112e59 Check if evil-emacs-state-local-map is bound 2019-10-10 22:35:26 +13:00
3e7bcda04a tools/debugger: Add rust binding for dap-lldb (#1677)
* Add Rust binding to dap-mode in :tools debugger
* Fix missing ).
2019-08-17 16:03:57 -04:00
82ae3a73f3 def-advice!->defadvice! & conform to new advice conventions
This commit does two things:

- Renames def-advice! to defadvice!, in the spirit of naming convenience
  macros after the function/macro they enhance or replace.
- Correct the names of advice functions to indicate visibility and
  intent. A public advice function like doom-set-jump-a is meant to be
  used elsewhere. A private one like +dired--cleanup-header-line-a
  shouldn't -- it likely won't work anywhere but the function(s) it was
  made to advise.
2019-07-23 17:24:56 +02:00
76cacb5bfe 💥 Rename def-package! -> use-package!
Calling this pivotal macro "def-package!" has frequently been a source
of confusion. It is a thin wrapper around use-package, and it should be
obvious that it is so. For this reason, and to match the naming
convention used with other convenience macros/wrappers, it is now
use-package!.

Also changes def-package-hook! -> use-package-hook!

The old macros are now marked obsolete and will be removed when straight
integration is merged.
2019-07-23 12:50:45 +02:00
8e09b8b7fe tools/debugger: conform to new advice conventions 2019-07-22 23:51:12 +02:00
95a6a2baaf tools/debugger: add lldb & gdb dap debuggers
And refactors/reformats how dap modules are loaded.
2019-07-09 21:32:09 +02:00
096a3b96cc Update & refactor tools/debugger
- Polish dap-mode support
- Fix realgud autoloads
- Add +debugger/start and +debugger/quit
- Move dap-breakpoints file into doom-etc-dir
- Fix SPC o d
- Add popup rule for realgud:pdb debugger
- Update display-in-popup advice to reflect changes upstream
- Realgud command buffer is auto-killed (and popup closed) when quitting
  the debugger.
- (evil users) Add :debug ex command
2019-07-07 22:01:24 +02:00
63412af9c3 tools/debugger: add node >=v8 support to realgud 2019-07-07 13:12:06 +02:00
70ac4c0cf5 tools/debugger: add rudimentary dap-mode support 2019-07-06 23:22:27 +02:00
77e4cc4d58 💥 Remove :feature category
:feature was a "catch-all" category. Many of its modules fit better in
other categories, so they've been moved:

- feature/debugger -> tools/debugger
- feature/evil -> editor/evil
- feature/eval -> tools/eval
- feature/lookup -> tools/lookup
- feature/snippets -> editor/snippets
- feature/file-templates -> editor/file-templates
- feature/workspaces -> ui/workspaces

More potential changes in the future:

- A new :term category for terminal emulation modules (eshell, term and
  vterm).
- A new :os category for modules dedicated to os-specific functionality.
  The :tools macos module would fit here, but so would modules for nixos
  and arch.
- A new :services category for web-service integration, like wakatime,
  twitter, elfeed, gist and pastebin services.
2019-04-24 18:16:04 -04:00