mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-12-19 13:19:48 +01:00
feat: add option for debugger configs
This commit is contained in:
parent
1eceb04db9
commit
624782e196
2 changed files with 13 additions and 3 deletions
|
@ -11,9 +11,13 @@ in {
|
||||||
(mkIf cfg.enable {
|
(mkIf cfg.enable {
|
||||||
vim.startPlugins = ["nvim-dap"];
|
vim.startPlugins = ["nvim-dap"];
|
||||||
|
|
||||||
vim.luaConfigRC.nvim-dap =
|
vim.luaConfigRC =
|
||||||
nvim.dag.entryAnywhere ''
|
{
|
||||||
'';
|
nvim-dap = nvim.dag.entryAnywhere ''
|
||||||
|
local dap = require("dap")
|
||||||
|
'';
|
||||||
|
}
|
||||||
|
// mapAttrs (_: v: (nvim.dag.entryAfter ["nvim-dap"] v)) cfg.sources;
|
||||||
})
|
})
|
||||||
(mkIf (cfg.enable && cfg.ui.enable) {
|
(mkIf (cfg.enable && cfg.ui.enable) {
|
||||||
vim.startPlugins = ["nvim-dap-ui"];
|
vim.startPlugins = ["nvim-dap-ui"];
|
||||||
|
|
|
@ -11,5 +11,11 @@ with lib; {
|
||||||
description = "Automatically Opens and Closes DAP-UI upon starting/closing a debugging session";
|
description = "Automatically Opens and Closes DAP-UI upon starting/closing a debugging session";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
sources = mkOption {
|
||||||
|
default = {};
|
||||||
|
description = "List of debuggers to install";
|
||||||
|
type = with types; attrsOf string;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue