Closed ktakiman closed 11 months ago
Tested REPL window with lua (jbyuki/one-small-step-for-vimkind
), c/c++ (codelldb
), python(debugpy
) and javascript (vscode-node-debug2
) with this update, and so far not seeing any side effect and a blank prompt stopped appearing.
Thanks for the great analysis and explanation.
Amazing, thank you @ktakiman!
Here is a few things I learned along the way and how I approached fixing #1052.
buftype=prompt
, where nvim makes sure that there is always a prompt at the end of buffer in insert mode (dap>
).exec
function inrepl.lua
is executed (registered viavim.fn.prompt_setcallback
). nvim does not put the next prompt until callback returns, so, within the callback, new lines can simply be appendend at the end of the buffer. (e.g..help
command does not leave an empty prompt in the middle).append
function insiderepl.lua
is updated to apply the first option.evaluate_handler
now calls this function instead oflayer.render
where possible.tree.render
is called insideevaluate_handler
.