diff options
Diffstat (limited to 'server/src/matcher/hover.lua')
-rw-r--r-- | server/src/matcher/hover.lua | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/server/src/matcher/hover.lua b/server/src/matcher/hover.lua index ba2fbc56..ef6b8b68 100644 --- a/server/src/matcher/hover.lua +++ b/server/src/matcher/hover.lua @@ -129,32 +129,6 @@ local function buildEnum(lib) return table.concat(strs) end -local function buildField(lib) - if not lib.fields then - return '' - end - local strs = {} - for _, field in ipairs(lib.fields) do - strs[#strs+1] = ('\n%s: %s -- %s'):format(field.field, field.type, field.description or '') - end - return table.concat(strs) -end - -local function buildTableHover(lib, fullKey) - local title = ('table %s'):format(fullKey) - local field = buildField(lib) - local tip = lib.description or '' - return ([[ -```lua -%s -``` -%s -```lua -%s -``` -]]):format(title, tip, field) -end - local function buildValueName(result, source) local func = result.value local declarat = func.declarat or source |