diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-12-09 17:29:00 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-12-09 17:29:00 +0800 |
commit | d1ca1c8add2b122eb9b558d3c185f34de001e971 (patch) | |
tree | 4abcdbf6f8034ae80b2d376c36fcb01ea340f7ff /script-beta/core/hover/init.lua | |
parent | b40b95f5aaba8da1aedbcfdea184ab7ba109c5a8 (diff) | |
download | lua-language-server-d1ca1c8add2b122eb9b558d3c185f34de001e971.zip |
hover 支持 require 路径
Diffstat (limited to 'script-beta/core/hover/init.lua')
-rw-r--r-- | script-beta/core/hover/init.lua | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/script-beta/core/hover/init.lua b/script-beta/core/hover/init.lua index 34a1afae..63129c3e 100644 --- a/script-beta/core/hover/init.lua +++ b/script-beta/core/hover/init.lua @@ -2,6 +2,7 @@ local files = require 'files' local guide = require 'parser.guide' local vm = require 'vm' local getLabel = require 'core.hover.label' +local getDesc = require 'core.hover.description' local util = require 'utility' local function getHoverAsFunction(source) @@ -54,9 +55,11 @@ end local function getHoverAsValue(source) local label = getLabel(source, source) + local desc = getDesc(source) return { - label = label, - source = source, + label = label, + description = desc, + source = source, } end |