-
Notifications
You must be signed in to change notification settings - Fork 459
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(dap)!: support integrated terminals (io in neovim) #877
Conversation
a9f1103
to
3f24b6f
Compare
mfussenegger/nvim-dap#763 |
|
1ab02c9
to
81c022b
Compare
sorry for the late reply, quite busy these couple weeks. i'll review this pr on following next week days. |
No worries and no hurry! Review this whenever it's convenient for you 😄 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@CharlesChiuGit Move ur cursor to the buffer named |
Hmm that's strange. The effective component is ( {
elements = {
{ id = "console", size = 0.55 },
{ id = "repl", size = 0.45 },
},
position = "bottom",
size = 0.25,
}, Restart Neovim and sync those plugins to see if this helps? |
is this pr gd to go? |
Currently waiting for mfussenegger/nvim-dap#987, cause I'm not sure if Go-related stuffs are good to go yet. |
hmmm, the author just closed the issue as not planned. |
Yeah that's indeed a tricky one. I'm drafting a new release note and will briefly cover this. I will merge this once Im done ;) |
* feat(dap)!: support integrated terminals (io in neovim) * fix(dap): correct event callback * feat(dap): setup keymaps correctly * fix CI fix variable naming * adjust dapui * feat(dap): support debugpy integrated terminal io. * support vscode-go and misc changes * fix CI * fixup dap utils --------- Co-authored-by: ayamir <lgt986452565@gmail.com>
Recent updates to
nvim-dap
made integrated terminals possibe right inside Neovim. This PR implemented basic support for this feature, but it's still necessary to adjust the settings of each debugger to correctly redirect stdio to the specified terminal (inside Neovim). More info: dap-terminal.I'm not that familiar with other debuggers so I only adjusted the settings for
codelldb
(AFAIKlldb-vscode
has zero support for IO redirection). Someone who understands these other debuggers could help make several changes before merging :) Any help will be appreciated!Aditionally,
K
(responsible forrequire('dapui').eval()
) will be set as a buffer-local keymap (mode:n|v
) when a session initiates. We may need to document this in the Wiki.Related: #416, #440, #592