From 0f55f1535df9bfc6314dad7d339f5ebeeced1f5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Mon, 24 Dec 2018 11:25:46 +0800 Subject: =?UTF-8?q?=E4=BF=AE=E6=AD=A3require=20XXX=20=E7=9A=84hover?= =?UTF-8?q?=E4=B8=8D=E6=AD=A3=E7=A1=AE=E7=9A=84BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/src/matcher/hover.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'server/src/matcher/hover.lua') diff --git a/server/src/matcher/hover.lua b/server/src/matcher/hover.lua index dc7d40de..774cce92 100644 --- a/server/src/matcher/hover.lua +++ b/server/src/matcher/hover.lua @@ -388,7 +388,10 @@ local function getStringHover(result, lsp) return nil end local path = lsp.workspace:relativePathByUri(result.uri) - return ('[%s](%s)'):format(path:string(), result.uri) + return { + label = '', + description = ('[%s](%s)'):format(path:string(), result.uri), + } end return function (result, source, lsp, select) -- cgit v1.2.3