-
-
Notifications
You must be signed in to change notification settings - Fork 218
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow to pass evaluate context to repl.execute
Debug adapters like `gdb` treat input in the REPL as commands, which is usually what you want if interacting with the debug adapter from the REPL, but `repl.execute(expression)` is often used to show the result of an expression in the REPL. This adds an `opts` parameter with a `context` field to allow using something like `dap.repl.execute(vim.fn.expand("<cexpr>"), { context = "hover" })` in a keymap to evaluate the input as a variable/expression instead of a command
- Loading branch information
1 parent
1fdfe74
commit cb28949
Showing
1 changed file
with
22 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters