diff options
Diffstat (limited to 'script/provider/provider.lua')
-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, |