neovim-flake/modules/debugger/nvim-dap/config.nix
2023-06-27 00:04:58 +02:00

23 lines
360 B
Nix

{
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()
'';
};
}