Skip to content

Commit bf12a8b

Browse files
committed
fix
1 parent d8759ca commit bf12a8b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

script/core/hover/init.lua

+3-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ local guide = require 'parser.guide'
99
local wssymbol = require 'core.workspace-symbol'
1010

1111
---@async
12+
---@param level integer
1213
local function getHover(source, level)
1314
local md = markdown()
1415
local defMark = {}
@@ -126,6 +127,7 @@ local accept = {
126127
}
127128

128129
---@async
130+
---@param level integer
129131
local function getHoverByUri(uri, position, level)
130132
local ast = files.getState(uri)
131133
if not ast then
@@ -135,7 +137,7 @@ local function getHoverByUri(uri, position, level)
135137
if not source then
136138
return nil
137139
end
138-
local hover = getHover(source)
140+
local hover = getHover(source, level)
139141
if SHOWSOURCE then
140142
hover:splitLine()
141143
hover:add('md', 'Source Info')

0 commit comments

Comments
 (0)