plugins/dap: init + extensions + tests (#455)

This commit is contained in:
Wolbyte 2023-07-03 22:34:46 +03:30 committed by GitHub
parent 993cf528b7
commit d025d14f4e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 967 additions and 0 deletions

View 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;
};
};
}