summaryrefslogtreecommitdiff
path: root/server/src/core
diff options
context:
space:
mode:
authorResike <resike@gmail.com>2019-09-19 16:42:40 +0200
committerGitHub <noreply@github.com>2019-09-19 16:42:40 +0200
commitb890ed2501fb74a434b4e60292cf6849051b2487 (patch)
treec4e3ff7b017e65fcd235657aa40113bf0b30e7a8 /server/src/core
parente24f50df9921ed9227e87ef14454abf48dabdc3c (diff)
downloadlua-language-server-b890ed2501fb74a434b4e60292cf6849051b2487.zip
Update lib_function.lua
Allow custom sites for things like going to wowpedia.
Diffstat (limited to 'server/src/core')
-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)