diff options
Diffstat (limited to 'server')
-rw-r--r-- | server/src/matcher/hover.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/server/src/matcher/hover.lua b/server/src/matcher/hover.lua index 7b157892..a6a83ed5 100644 --- a/server/src/matcher/hover.lua +++ b/server/src/matcher/hover.lua @@ -401,6 +401,10 @@ return function (result, source, lsp, select) return getStringHover(result, lsp) end + if result.type ~= 'local' or result.type ~= 'field' then + return + end + local lib, fullKey, oo = findLib(result) local valueType = lib and lib.type or result.value.type or 'nil' local name = fullKey or buildValueName(result, source) |