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
This commit is contained in:
Mathias Fußenegger
2020-02-21 09:34:07 +01:00
committed by GitHub
parent 82936c3b9a
commit ff1730373c

View File

@@ -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