Skip to content

Adding debugger - #482

Closed
carlos777g wants to merge 6 commits into
jdhao:mainfrom
carlos777g:main
Closed

Adding debugger #482
carlos777g wants to merge 6 commits into
jdhao:mainfrom
carlos777g:main

Conversation

@carlos777g

Copy link
Copy Markdown

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 the
project's actual environment.

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.
@carlos777g carlos777g closed this Sep 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant