From e74d75c40e5c1b3dff2454b70aafb38332cf8969 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Wed, 4 Jan 2023 19:37:55 +0800 Subject: cleanup --- script/core/hover/init.lua | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'script/core/hover/init.lua') diff --git a/script/core/hover/init.lua b/script/core/hover/init.lua index d9fb2b6d..fb5f7cd5 100644 --- a/script/core/hover/init.lua +++ b/script/core/hover/init.lua @@ -137,10 +137,18 @@ local function getHoverByUri(uri, position) local hover = getHover(source) if SHOWSOURCE then hover:splitLine() + hover:add('md', 'Source Info') hover:add('lua', util.dump(source, { deep = 1, })) end + if SHOWNODE then + hover:splitLine() + hover:add('md', 'Node Info') + hover:add('lua', util.dump(vm.compileNode(source), { + deep = 1, + })) + end return hover, source end -- cgit v1.2.3