mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
plugins/dap-view: init module
This commit is contained in:
parent
324801b226
commit
cca235aacf
2 changed files with 98 additions and 0 deletions
29
plugins/by-name/dap-view/default.nix
Normal file
29
plugins/by-name/dap-view/default.nix
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
{ lib, ... }:
|
||||||
|
lib.nixvim.plugins.mkNeovimPlugin {
|
||||||
|
name = "dap-view";
|
||||||
|
packPathName = "nvim-dap-view";
|
||||||
|
moduleName = "dap-view";
|
||||||
|
package = "nvim-dap-view";
|
||||||
|
|
||||||
|
maintainers = [ lib.maintainers.khaneliman ];
|
||||||
|
|
||||||
|
settingsExample = {
|
||||||
|
winbar = {
|
||||||
|
controls.enabled = true;
|
||||||
|
};
|
||||||
|
windows.terminal = {
|
||||||
|
position = "right";
|
||||||
|
start_hidden = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
extraConfig = {
|
||||||
|
# Compatibility with lualine module.
|
||||||
|
# Broken UI otherwise https://github.com/igorlfs/nvim-dap-view/issues/36
|
||||||
|
plugins.lualine.settings.options.disabled_filetypes.winbar = [
|
||||||
|
"dap-repl"
|
||||||
|
"dap-view"
|
||||||
|
"dap-view-term"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
69
tests/test-sources/plugins/by-name/dap-view/default.nix
Normal file
69
tests/test-sources/plugins/by-name/dap-view/default.nix
Normal file
|
@ -0,0 +1,69 @@
|
||||||
|
{
|
||||||
|
empty = {
|
||||||
|
plugins.dap-view.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
defaults = {
|
||||||
|
plugins.dap-view = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
winbar = {
|
||||||
|
show = true;
|
||||||
|
sections = [
|
||||||
|
"watches"
|
||||||
|
"scopes"
|
||||||
|
"exceptions"
|
||||||
|
"breakpoints"
|
||||||
|
"threads"
|
||||||
|
"repl"
|
||||||
|
];
|
||||||
|
default_section = "watches";
|
||||||
|
headers = {
|
||||||
|
breakpoints = "Breakpoints [B]";
|
||||||
|
scopes = "Scopes [S]";
|
||||||
|
exceptions = "Exceptions [E]";
|
||||||
|
watches = "Watches [W]";
|
||||||
|
threads = "Threads [T]";
|
||||||
|
repl = "REPL [R]";
|
||||||
|
console = "Console [C]";
|
||||||
|
};
|
||||||
|
controls = {
|
||||||
|
enabled = false;
|
||||||
|
position = "right";
|
||||||
|
buttons = [
|
||||||
|
"play"
|
||||||
|
"step_into"
|
||||||
|
"step_over"
|
||||||
|
"step_out"
|
||||||
|
"step_back"
|
||||||
|
"run_last"
|
||||||
|
"terminate"
|
||||||
|
"disconnect"
|
||||||
|
];
|
||||||
|
icons = {
|
||||||
|
pause = "";
|
||||||
|
play = "";
|
||||||
|
step_into = "";
|
||||||
|
step_over = "";
|
||||||
|
step_out = "";
|
||||||
|
step_back = "";
|
||||||
|
run_last = "";
|
||||||
|
terminate = "";
|
||||||
|
disconnect = "";
|
||||||
|
};
|
||||||
|
custom_buttons = { };
|
||||||
|
};
|
||||||
|
};
|
||||||
|
windows = {
|
||||||
|
height = 12;
|
||||||
|
terminal = {
|
||||||
|
position = "left";
|
||||||
|
hide = { };
|
||||||
|
start_hidden = false;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
switchbuf = "usetab;newtab";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue