Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sumneko committed Dec 13, 2024
1 parent d8759ca commit bf12a8b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion script/core/hover/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ local guide = require 'parser.guide'
local wssymbol = require 'core.workspace-symbol'

---@async
---@param level integer
local function getHover(source, level)
local md = markdown()
local defMark = {}
Expand Down Expand Up @@ -126,6 +127,7 @@ local accept = {
}

---@async
---@param level integer
local function getHoverByUri(uri, position, level)
local ast = files.getState(uri)
if not ast then
Expand All @@ -135,7 +137,7 @@ local function getHoverByUri(uri, position, level)
if not source then
return nil
end
local hover = getHover(source)
local hover = getHover(source, level)
if SHOWSOURCE then
hover:splitLine()
hover:add('md', 'Source Info')
Expand Down

0 comments on commit bf12a8b

Please sign in to comment.