diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-06-27 20:51:21 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-06-27 20:51:21 +0800 |
commit | ca19e2ea1d6df45e7e2fa1ac7bd910e083a13600 (patch) | |
tree | cf99a88c03f8f07a9aca1985f4e279452b2f75a9 /server/src/core/completion.lua | |
parent | d61d771ee3e3e470da5b3542357b9b4610fd4eef (diff) | |
parent | f3f86af8e69cf2f71af7caa57b708cbbee0be88c (diff) | |
download | lua-language-server-ca19e2ea1d6df45e7e2fa1ac7bd910e083a13600.zip |
Merge commit 'f3f86af8e69cf2f71af7caa57b708cbbee0be88c' into emmy-meta
Diffstat (limited to 'server/src/core/completion.lua')
-rw-r--r-- | server/src/core/completion.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/server/src/core/completion.lua b/server/src/core/completion.lua index b23d5bab..18bf12af 100644 --- a/server/src/core/completion.lua +++ b/server/src/core/completion.lua @@ -6,6 +6,7 @@ local sourceMgr = require 'vm.source' local config = require 'config' local matchKey = require 'core.matchKey' local parser = require 'parser' +local lang = require 'language' local State local CompletionItemKind = { @@ -123,7 +124,7 @@ local function getDetail(value) local func = value:getFunction() local overLoads = func and func:getEmmyOverLoads() if overLoads then - detals[#detals+1] = ('(%d 个原型)'):format(#overLoads + 1) + detals[#detals+1] = lang.script('HOVER_MULTI_PROTOTYPE', #overLoads + 1) end end if #detals == 0 then |