summaryrefslogtreecommitdiff
path: root/script-beta
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-12-09 21:04:30 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-12-09 21:04:30 +0800
commit21214e6da8480c455df57ce9524cc73f0bf5ff13 (patch)
treeee7223a97641948fd6fa857581d83307736c31d5 /script-beta
parent2b3492cea6a1c3358119a3a630763ab3728a2c6f (diff)
downloadlua-language-server-21214e6da8480c455df57ce9524cc73f0bf5ff13.zip
排个序
Diffstat (limited to 'script-beta')
-rw-r--r--script-beta/provider/init.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/script-beta/provider/init.lua b/script-beta/provider/init.lua
index 7e9569a0..8fda0315 100644
--- a/script-beta/provider/init.lua
+++ b/script-beta/provider/init.lua
@@ -313,6 +313,7 @@ proto.on('textDocument/completion', function (params)
items[i] = {
label = res.label,
kind = res.kind,
+ sortText = ('%04d'):format(i),
}
end