fix(dap.hover): add naive python formatting

This commit is contained in:
2025-09-30 20:47:18 +02:00
parent 33378972cd
commit ededb07093
+7
View File
@@ -220,6 +220,13 @@ function Node:format_into(content)
local text local text
if self:is_c_lang() then if self:is_c_lang() then
text = self:format_c() text = self:format_c()
elseif self.lang == "python" then
text = string.format(
"%s: %s = %s",
self.item.name,
self.item.type,
self.item.value
)
else else
error(string.format("Formatting for %s not implemented", self.lang)) error(string.format("Formatting for %s not implemented", self.lang))
end end