summaryrefslogtreecommitdiff
path: root/server/src
diff options
context:
space:
mode:
Diffstat (limited to 'server/src')
-rw-r--r--server/src/matcher/hover.lua5
1 files changed, 4 insertions, 1 deletions
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)