mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-09-11 12:43:28 +00:00
dev: init nvim-dap setup
This commit is contained in:
parent
e4c2c3dfe4
commit
640e37bd08
9 changed files with 100 additions and 0 deletions
23
modules/debugger/nvim-dap/config.nix
Normal file
23
modules/debugger/nvim-dap/config.nix
Normal file
|
@ -0,0 +1,23 @@
|
|||
{
|
||||
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()
|
||||
'';
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue