summaryrefslogtreecommitdiff
path: root/server/src/method
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-08-27 20:54:07 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-08-27 20:54:07 +0800
commit972e6458ed5c256cb3d1de05b585bc3fc55f82ad (patch)
tree6f8a8eb5adfff5f0410f60348a8ee3940a7ec5c3 /server/src/method
parenta828a593e119ec222e4ef9e6a737234cabe00245 (diff)
downloadlua-language-server-972e6458ed5c256cb3d1de05b585bc3fc55f82ad.zip
分离函数调用与函数对象
Diffstat (limited to 'server/src/method')
-rw-r--r--server/src/method/textDocument/completion.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/server/src/method/textDocument/completion.lua b/server/src/method/textDocument/completion.lua
index 1b9aa73f..eb33b3ce 100644
--- a/server/src/method/textDocument/completion.lua
+++ b/server/src/method/textDocument/completion.lua
@@ -80,6 +80,7 @@ return function (lsp, params)
for i, item in ipairs(items) do
item.sortText = ('%04d'):format(i)
+ item.insertTextFormat = 2
if item.textEdit then
item.textEdit.range = posToRange(lines, item.textEdit.start, item.textEdit.finish)
item.textEdit.start = nil