From 0916fa1cb8ad46e38ae3535cb442cd47c5c33ec1 Mon Sep 17 00:00:00 2001 From: Oscar Wallberg Date: Sun, 28 Sep 2025 12:57:32 +0200 Subject: [PATCH] fix(dap.hover): don't format dereferenced variables specially --- lua/ow/dap/hover/node.lua | 9 --------- 1 file changed, 9 deletions(-) diff --git a/lua/ow/dap/hover/node.lua b/lua/ow/dap/hover/node.lua index d2c976c..73b8347 100644 --- a/lua/ow/dap/hover/node.lua +++ b/lua/ow/dap/hover/node.lua @@ -72,11 +72,6 @@ function Node:is_c_array_element() return self.item.name:match("^%[?%d+%]?$") ~= nil end ----@return boolean -function Node:is_c_pointer_child() - return self.parent ~= nil and self.parent:is_c_pointer() -end - ---@return string function Node:format_c() if self:is_c_array_element() then @@ -88,10 +83,6 @@ function Node:format_c() ) end - if self:is_c_pointer_child() then - return string.format("%s = %s", self.item.name, self.item.value) - end - return string.format( "%s %s = %s", self.item.type,