Adding debugger - #482
Closed
carlos777g wants to merge 6 commits into
Closed
Conversation
vim.fs.joinpath() was concatenating config_path with a literal '~/miniconda3/...' string instead of expanding the home directory, producing an invalid nested path that always failed fs_stat. Replace with vim.fn.expand() to properly resolve the conda interpreter path. Also update the error message to reflect the actual recovery procedure (conda env, not a venv under nvim config).
Load a fixed default colorscheme (onedark) on startup instead of picking one randomly each time. Add a user command (with completion) that applies the friendly keys from colorscheme_conf, and hook via ColorSchemePre so native theme switching also picks up each scheme's extra setup (italics, background variant, etc.) when the name matches a known key.
Drop the auto_save autocmd (silent update on InsertLeave/TextChanged) and the auto_close_win autocmd (qall when only qf/NvimTree windows remain). Both silently override vanilla / semantics, which is confusing for anyone used to plain Vim behavior.
Remove the cmdline auto-show completion menu so typing (or any other command) no longer pops up suggestions like / automatically. Command-line falls back to Neovim's native wildmenu.
Add nvim-dap + nvim-dap-ui + nvim-dap-virtual-text + nvim-dap-python, giving a VS Code-like debugging experience: breakpoints, step in/over/out (including into imported modules), live variable inspection in a dedicated UI, and inline virtual-text values. dap-python resolves the interpreter from , a project-local .venv, or the configured python3_host_prog, in that order, so (must be installed in that interpreter) matches the project's actual environment.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
feat(dap): add nvim-dap debugger with Python support
Add nvim-dap + nvim-dap-ui + nvim-dap-virtual-text + nvim-dap-python,
giving a VS Code-like debugging experience: breakpoints, step
in/over/out (including into imported modules), live variable
inspection in a dedicated UI, and inline virtual-text values.
dap-python resolves the interpreter from $VIRTUAL_ENV, a project-local
.venv, or the configured python3_host_prog, in that order, so
debugpy(must be installed in that interpreter) matches theproject's actual environment.