From f4c3c59ab9c95581c267ee8b4775af40091efab9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Tue, 25 Dec 2018 15:13:10 +0800 Subject: =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/src/matcher/hover.lua | 4 ++++ 1 file changed, 4 insertions(+) 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) -- cgit v1.2.3