diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2018-12-13 20:54:08 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2018-12-13 20:54:08 +0800 |
commit | 7b173a3923332a3826a9184fbfdb3feb62189051 (patch) | |
tree | 1d81d420c1b94cf3e084cd5ab7098273a7283178 /server/src/matcher/hover.lua | |
parent | 6a5cdaaf251a61cac95c7959c5a6218daaeaa12c (diff) | |
download | lua-language-server-7b173a3923332a3826a9184fbfdb3feb62189051.zip |
表的内容不需要额外配置了
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 |