bug: Setting `dap = false` still loads `nvim-dap` during setup
MariaSolOs opened this issue · comments
Maria José Solano commented
Neovim version (nvim -v)
v0.10.0-dev-1260+g9ce162383
Operating system/version
macOS Sonoma 14.0
Describe the bug
The docs describing the DAP integration say that one can disable the automatic integration when setting up this plugin and setting it up manually later. However, this plugin is still loading dap
during initialization, disabling lazy-loading.
Steps To Reproduce
- Install both
overseer
andnvim-dap
using their default configurations. - Use the configuration provided below.
- Run
OverseerRun
and notice hownvim-dap
is also loaded.
Expected Behavior
For nvim-dap
to not be loaded when setting up overseer
if dap = false
, but instead wait until patch_dap
is invoked.
Minimal example file
No response
Minimal init.lua
-- DO NOT change the paths and don't remove the colorscheme
local root = vim.fn.fnamemodify("./.repro", ":p")
-- set stdpaths to use .repro
for _, name in ipairs({ "config", "data", "state", "cache" }) do
vim.env[("XDG_%s_HOME"):format(name:upper())] = root .. "/" .. name
end
-- bootstrap lazy
local lazypath = root .. "/plugins/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
vim.fn.system({
"git",
"clone",
"--filter=blob:none",
"--single-branch",
"https://github.com/folke/lazy.nvim.git",
lazypath,
})
end
vim.opt.runtimepath:prepend(lazypath)
-- install plugins
local plugins = {
"folke/tokyonight.nvim",
{ "stevearc/dressing.nvim", config = true },
{
"stevearc/overseer.nvim",
config = function()
require("overseer").setup({
-- add your overseer config here
dap = false
})
end,
},
-- add any other plugins here
}
require("lazy").setup(plugins, {
root = root .. "/plugins",
})
vim.cmd.colorscheme("tokyonight")
-- add anything else here
Additional context
No response