nvf/modules/debugger/nvim-dap/config.nix

24 lines
360 B
Nix
Raw Normal View History

2023-05-04 15:41:11 +00:00
{
config,
lib,
...
}:
with lib;
with builtins; let
cfg = config.vim.debugger.nvim-dap;
in {
config = mkIf cfg.enable {
vim.startPlugins =
[
"nvim-dap"
]
++ optionals cfg.ui.enable [
"nvim-dap-ui"
];
vim.luaConfigRC.nvim-dap-ui = nvim.dag.entryAnywhere ''
require("dapui").setup()
'';
};
}