diff options
author | sumneko <sumneko@hotmail.com> | 2022-02-08 22:50:27 +0800 |
---|---|---|
committer | sumneko <sumneko@hotmail.com> | 2022-02-08 22:50:27 +0800 |
commit | 86237012d5b80833d64547199c167db263626a2c (patch) | |
tree | ec7973fb21a2582445e259d6d29803b2bb2a301a /script/provider | |
parent | 007e8637827b75d95f188df0f1c3173cabc53a8b (diff) | |
download | lua-language-server-86237012d5b80833d64547199c167db263626a2c.zip |
reduced sorting priority for postfix completion
Diffstat (limited to 'script/provider')
-rw-r--r-- | script/provider/provider.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/script/provider/provider.lua b/script/provider/provider.lua index dc267dae..bd0dd826 100644 --- a/script/provider/provider.lua +++ b/script/provider/provider.lua @@ -535,7 +535,7 @@ m.register 'textDocument/completion' { kind = res.kind, detail = res.detail, deprecated = res.deprecated, - sortText = ('%04d'):format(i), + sortText = res.sortText or ('%04d'):format(i), filterText = res.filterText, insertText = res.insertText, insertTextFormat = 2, |