mirror of
https://github.com/neovim/neovim.git
synced 2025-10-21 09:12:07 +00:00
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:

committed by
GitHub

parent
82936c3b9a
commit
ff1730373c
@@ -201,7 +201,7 @@ function M.text_document_completion_list_to_complete_items(result, prefix)
|
|||||||
menu = completion_item.detail or '',
|
menu = completion_item.detail or '',
|
||||||
info = info,
|
info = info,
|
||||||
icase = 1,
|
icase = 1,
|
||||||
dup = 0,
|
dup = 1,
|
||||||
empty = 1,
|
empty = 1,
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user