mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-24 17:58:38 +02:00
plugins/dap: init + extensions + tests (#455)
This commit is contained in:
parent
993cf528b7
commit
d025d14f4e
12 changed files with 967 additions and 0 deletions
32
tests/test-sources/plugins/dap/dap-virtual-text.nix
Normal file
32
tests/test-sources/plugins/dap/dap-virtual-text.nix
Normal file
|
@ -0,0 +1,32 @@
|
|||
{
|
||||
empty = {
|
||||
plugins.dap.extensions.dap-virtual-text.enable = true;
|
||||
};
|
||||
|
||||
default = {
|
||||
plugins.dap.extensions.dap-virtual-text = {
|
||||
enable = true;
|
||||
|
||||
enabledCommands = true;
|
||||
highlightChangedVariables = true;
|
||||
highlightNewAsChanged = true;
|
||||
showStopReason = true;
|
||||
commented = false;
|
||||
onlyFirstDefinition = true;
|
||||
allReferences = false;
|
||||
clearOnContinue = false;
|
||||
displayCallback = ''
|
||||
function(variable, buf, stackframe, node, options)
|
||||
if options.virt_text_pos == 'inline' then
|
||||
return ' = ' .. variable.value
|
||||
else
|
||||
return variable.name .. ' = ' .. variable.value
|
||||
end
|
||||
end
|
||||
'';
|
||||
virtTextPos = "eol";
|
||||
allFrames = false;
|
||||
virtLines = false;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue