How to change the default mapping of <CR>
on dap-repl
?
#835
-
If I press
then I found that it is a result of the underlying command: lua require('dap.ui').trigger_actions({ mode = 'first' }) which is set by default in both nvim-dap/lua/dap/ui/widgets.lua Lines 10 to 11 in 700a3c7 and Line 32 in a9f21a2 Since I already have a normal map for UPDATE: I came across an issue where you shared an example usage of |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
With 43695d2 you should be able to setup a vim.api.nvim_create_autocmd('FileType', {
pattern = 'dap-repl',
callback = function(args)
vim.keymap.del('n', '<CR>', { buffer = args.buf })
end
}) |
Beta Was this translation helpful? Give feedback.
With 43695d2 you should be able to setup a
FileType
autocmd fordap-repl
to override/remove the keymap.