Custom commands are not listed when invoking `.help` in dap-repl.
mosmuell opened this issue · comments
Mose Müller commented
Debug adapter definition and debug configuration
I installed nvim-dap
through packer.nvim.
I configured the custom repl commands as described in the wiki
local repl = require 'dap.repl'
repl.commands = vim.tbl_extend('force', repl.commands, {
-- Add a new alias for the existing .exit command
exit = {'exit', '.exit', '.bye'},
-- Add your own commands; run `.echo hello world` to invoke
-- this function with the text "hello world"
custom_commands = {
['.echo'] = function(text)
nvim_dap.repl.append(text)
end,
-- Hook up a new command to an existing dap function
['.restart'] = nvim_dap.restart,
},
})
Debug adapter version
No response
Steps to Reproduce
Upon opening dap-repl (e.g. :lua require'dap'.repl.toggle()
) the help page, invoked via help
, does not show custom repl commands.
Expected Result
dap> help
Commands:
.capabilities
.into-targets
.into
.next, .n
.pause, .p
exit, .exit, .bye
.out
.frames
.scopes
.threads
.goto
.up
.reverse-continue, .rc
.continue, .c
help, .help, .h
.down
.back, .b
.echo
.restart
Actual Result
dap> help
Commands:
.capabilities
.into-targets
.into
.next, .n
.pause, .p
exit, .exit, .bye
.out
.frames
.scopes
.threads
.goto
.up
.reverse-continue, .rc
.continue, .c
help, .help, .h
.down
.back, .b