We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2087a06 commit fc2f257Copy full SHA for fc2f257
script/core/hover/init.lua
@@ -59,8 +59,9 @@ local function getHover(source, level)
59
60
-- make sure `function` is before `doc.type.function`
61
local orders = {'function', 'doc.type.function'}
62
+ local orderAnyOtherType = #orders + 1
63
table.sort(defs, function (a, b)
- return (orders[a.type] or (#orders + 1)) < (orders[b.type] or (#orders + 1))
64
+ return (orders[a.type] or orderAnyOtherType) < (orders[b.type] or orderAnyOtherType)
65
end)
66
67
local hasFunc
0 commit comments