fix(dap.hover): add naive python formatting
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user