diff options
author | Resike <resike@gmail.com> | 2019-09-19 16:42:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-19 16:42:40 +0200 |
commit | b890ed2501fb74a434b4e60292cf6849051b2487 (patch) | |
tree | c4e3ff7b017e65fcd235657aa40113bf0b30e7a8 /server | |
parent | e24f50df9921ed9227e87ef14454abf48dabdc3c (diff) | |
download | lua-language-server-b890ed2501fb74a434b4e60292cf6849051b2487.zip |
Update lib_function.lua
Allow custom sites for things like going to wowpedia.
Diffstat (limited to 'server')
-rw-r--r-- | server/src/core/hover/lib_function.lua | 3 |
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) |