summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
Diffstat (limited to 'server')
-rw-r--r--server/src/matcher/hover.lua2
-rw-r--r--server/test/hover/init.lua6
2 files changed, 7 insertions, 1 deletions
diff --git a/server/src/matcher/hover.lua b/server/src/matcher/hover.lua
index aba25268..71b7a6a0 100644
--- a/server/src/matcher/hover.lua
+++ b/server/src/matcher/hover.lua
@@ -171,7 +171,7 @@ local function getLibHover(lib, fullKey, oo)
elseif lib.type == 'string' then
cache[lib] = lib.description or ''
else
- cache[lib] = ''
+ cache[lib] = '*' .. lib.type
end
end
diff --git a/server/test/hover/init.lua b/server/test/hover/init.lua
index 8c4e916d..94730770 100644
--- a/server/test/hover/init.lua
+++ b/server/test/hover/init.lua
@@ -137,3 +137,9 @@ mt.__index = mt
local <?obj?> = setmetatable({}, mt)
]]
"local: *class"
+
+TEST[[
+local fs = require 'bee.filesystem'
+local <?root?> = fs.current_path()
+]]
+"*bee::filesystem"