diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-03-31 23:00:02 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-03-31 23:00:02 +0800 |
commit | c1ca4d8af0cefd6222b76f83341774857cef44ec (patch) | |
tree | 135a6c44cee6e253a20dd33c78e5c85db3eb6495 /script/core/hover/init.lua | |
parent | 3e516dd717440cad6fce8731a2b627abc6335bbb (diff) | |
download | lua-language-server-c1ca4d8af0cefd6222b76f83341774857cef44ec.zip |
cleanup
Diffstat (limited to 'script/core/hover/init.lua')
-rw-r--r-- | script/core/hover/init.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/script/core/hover/init.lua b/script/core/hover/init.lua index fdfbd73d..bc2f40eb 100644 --- a/script/core/hover/init.lua +++ b/script/core/hover/init.lua @@ -40,7 +40,7 @@ local function getHover(source) end local oop - if infer.viewType(source) == 'function' then + if infer.getInfer(source):view() == 'function' then local hasFunc for _, def in ipairs(vm.getDefs(source)) do if guide.isOOP(def) then |