aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/lsp/util.lua
diff options
context:
space:
mode:
authorMathias Fußenegger <mfussenegger@users.noreply.github.com>2020-02-21 09:34:07 +0100
committerGitHub <noreply@github.com>2020-02-21 00:34:07 -0800
commitff1730373c6139db14b8f2f9b24d4ccd7fcfb01d (patch)
tree24716b22f662771450147c742a14c5386b7c3997 /runtime/lua/vim/lsp/util.lua
parent82936c3b9a2802aa73827974b00ac549d6d56d97 (diff)
downloadrneovim-ff1730373c6139db14b8f2f9b24d4ccd7fcfb01d.tar.gz
rneovim-ff1730373c6139db14b8f2f9b24d4ccd7fcfb01d.tar.bz2
rneovim-ff1730373c6139db14b8f2f9b24d4ccd7fcfb01d.zip
lsp/completion: show duplicates in completion popup #11920
Allow duplicates so that in languages with overloaded functions it will show all signatures. E.g. instead of having a single (last one wins) add(int index, String element) It shows all signatures: add(String e) : boolean add(int index, String element) : void
Diffstat (limited to 'runtime/lua/vim/lsp/util.lua')
-rw-r--r--runtime/lua/vim/lsp/util.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/lua/vim/lsp/util.lua b/runtime/lua/vim/lsp/util.lua
index 6b12b37ec2..b7c7b7f75d 100644
--- a/runtime/lua/vim/lsp/util.lua
+++ b/runtime/lua/vim/lsp/util.lua
@@ -201,7 +201,7 @@ function M.text_document_completion_list_to_complete_items(result, prefix)
menu = completion_item.detail or '',
info = info,
icase = 1,
- dup = 0,
+ dup = 1,
empty = 1,
})
end