Reapply "fix(dap-ui): require dap-python to initialize .venv custom imports"

This reverts commit e7367e51ef.
This commit is contained in:
kenji
2026-07-17 20:45:15 -05:00
parent e7367e51ef
commit ea02380d69
+9 -3
View File
@@ -2,7 +2,7 @@
plugins = {
dap-ui = {
enable = true;
settings.floating.mappings = { close = [ "<ESC>" "q" ]; };
settings.floating.mappings = {close = ["<ESC>" "q"];};
};
dap-virtual-text.enable = true;
cmp-dap.enable = true;
@@ -210,6 +210,7 @@
# Allow DAP UI to automatically open and close when possible
extraConfigLua = ''
local dap, dapui = require("dap"), require("dapui")
dap.listeners.after.event_initialized["dapui_config"] = function()
dapui.open()
end
@@ -219,7 +220,12 @@
dap.listeners.before.event_exited["dapui_config"] = function()
dapui.close()
end
'';
extraPlugins = [(pkgs.vimPlugins.telescope-dap-nvim)];
-- Wipe existing Python configurations to prevent duplicates on reload
dap.configurations.python = {}
-- Setup the adapter using the dynamic Nix environment path
require("dap-python").setup(vim.fn.exepath("python"))
'';
extraPlugins = [(pkgs.vimPlugins.telescope-dap-nvim) pkgs.vimPlugins.nvim-dap-python];
}