From ededb07093420af775fb09d54e5c43e3a70b68fd Mon Sep 17 00:00:00 2001 From: Oscar Wallberg Date: Tue, 30 Sep 2025 20:47:18 +0200 Subject: [PATCH] fix(dap.hover): add naive python formatting --- lua/ow/dap/hover/node.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lua/ow/dap/hover/node.lua b/lua/ow/dap/hover/node.lua index 735e42b..37fcf56 100644 --- a/lua/ow/dap/hover/node.lua +++ b/lua/ow/dap/hover/node.lua @@ -220,6 +220,13 @@ function Node:format_into(content) local text if self:is_c_lang() then 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 error(string.format("Formatting for %s not implemented", self.lang)) end