-
As title. I have a keymap like this: vim.keymap.set('n', 'd', function () if dapui_open and G.cur_tab(tab_debug) then return end vim.fn.feedkeys('d', 'n') end) I found that |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
I found that the cause is that I also define some other keymaps starting with vim.keymap.set('n', 'di', function () if dapui_open and G.cur_tab(tab_debug) then return end vim.fn.feedkeys('di', 'n') end) |
Beta Was this translation helpful? Give feedback.
-
It's better to use an |
Beta Was this translation helpful? Give feedback.
I found that the cause is that I also define some other keymaps starting with
d
, e.g.d{d,m,c,r,t,k, ...}
, and this makes thed
ofdi
delayed(if I remove all otherd{...}
keymaps then no such problem) so insteadid
will be executed. To work around this, simply makedi
a special case too: