forked from Shinonome/fred-neovim
Reapply "fix(dap-ui): require dap-python to initialize .venv custom imports"
This reverts commit e7367e51ef.
This commit is contained in:
@@ -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];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user