summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--server/src/core/hover/lib_function.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/server/src/core/hover/lib_function.lua b/server/src/core/hover/lib_function.lua
index 57ba1417..96ed0f5e 100644
--- a/server/src/core/hover/lib_function.lua
+++ b/server/src/core/hover/lib_function.lua
@@ -184,6 +184,9 @@ local function buildDoc(lib)
if not doc then
return
end
+ if lib.web then
+ return lang.script(lib.web, doc)
+ end
local version = config.config.runtime.version
if version == 'Lua 5.1' then
return lang.script('HOVER_DOCUMENT_LUA51', doc)