mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-11-08 03:25:58 +01:00
23 lines
360 B
Nix
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()
|
|
'';
|
|
};
|
|
}
|