mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-09-06 02:11:33 +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()
|
||||
'';
|
||||
};
|
||||
}
|
6
modules/debugger/nvim-dap/default.nix
Normal file
6
modules/debugger/nvim-dap/default.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
_: {
|
||||
imports = [
|
||||
./config.nix
|
||||
./nvim-dap.nix
|
||||
];
|
||||
}
|
10
modules/debugger/nvim-dap/nvim-dap.nix
Normal file
10
modules/debugger/nvim-dap/nvim-dap.nix
Normal file
|
@ -0,0 +1,10 @@
|
|||
{lib, ...}:
|
||||
with lib; {
|
||||
options.vim.debugger.nvim-dap = {
|
||||
enable = mkEnableOption "Enable debugging via nvim-dap";
|
||||
|
||||
ui = {
|
||||
enable = mkEnableOption "Enable UI extension for nvim-dap";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue