mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-09-06 18:31:35 +00:00
treewide: begin restructuring the module tree
This commit is contained in:
parent
e1835f6c46
commit
7c730a78e5
254 changed files with 749 additions and 664 deletions
46
modules/plugins/debugger/nvim-dap/nvim-dap.nix
Normal file
46
modules/plugins/debugger/nvim-dap/nvim-dap.nix
Normal file
|
@ -0,0 +1,46 @@
|
|||
{lib, ...}: let
|
||||
inherit (lib.options) mkEnableOption mkOption;
|
||||
inherit (lib.types) bool attrsOf str;
|
||||
inherit (lib.nvim.binds) mkMappingOption;
|
||||
in {
|
||||
options.vim.debugger.nvim-dap = {
|
||||
enable = mkEnableOption "debugging via nvim-dap";
|
||||
|
||||
ui = {
|
||||
enable = mkEnableOption "UI extension for nvim-dap";
|
||||
autoStart = mkOption {
|
||||
type = bool;
|
||||
default = true;
|
||||
description = "Automatically Opens and Closes DAP-UI upon starting/closing a debugging session";
|
||||
};
|
||||
};
|
||||
|
||||
sources = mkOption {
|
||||
default = {};
|
||||
description = "List of debuggers to install";
|
||||
type = attrsOf str;
|
||||
};
|
||||
|
||||
mappings = {
|
||||
continue = mkMappingOption "Contiue" "<leader>dc";
|
||||
restart = mkMappingOption "Restart" "<leader>dR";
|
||||
terminate = mkMappingOption "Terminate" "<leader>dq";
|
||||
runLast = mkMappingOption "Re-run Last Debug Session" "<leader>d.";
|
||||
|
||||
toggleRepl = mkMappingOption "Toggle Repl" "<leader>dr";
|
||||
hover = mkMappingOption "Hover" "<leader>dh";
|
||||
toggleBreakpoint = mkMappingOption "Toggle breakpoint" "<leader>db";
|
||||
|
||||
runToCursor = mkMappingOption "Continue to the current cursor" "<leader>dgc";
|
||||
stepInto = mkMappingOption "Step into function" "<leader>dgi";
|
||||
stepOut = mkMappingOption "Step out of function" "<leader>dgo";
|
||||
stepOver = mkMappingOption "Next step" "<leader>dgj";
|
||||
stepBack = mkMappingOption "Step back" "<leader>dgk";
|
||||
|
||||
goUp = mkMappingOption "Go up stacktrace" "<leader>dvo";
|
||||
goDown = mkMappingOption "Go down stacktrace" "<leader>dvi";
|
||||
|
||||
toggleDapUI = mkMappingOption "Toggle DAP-UI" "<leader>du";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue