-
I may have missed this in the docs but is there any way to display and choose between all overloads of a function? As is it just shows overloaded functions like this |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
I think it would help if you'd be more specific. What language are you working in? |
Beta Was this translation helpful? Give feedback.
-
You need to use this: https://github.com/hrsh7th/cmp-nvim-lsp-signature-help require'cmp'.setup {
sources = {
{ name = 'nvim_lsp_signature_help' }
}
} |
Beta Was this translation helpful? Give feedback.
-
Hi, I've kind of a similar question. Let's say I have these two functions:
The LSP will show me that there are two overloads. But if the approach mentioned above I will not see the first version of |
Beta Was this translation helpful? Give feedback.
You need to use this: https://github.com/hrsh7th/cmp-nvim-lsp-signature-help
nvim-cmp
is a modular plugin and you need to install features you want manually.If you already have set up the main plugin, adding this feature is as easy as installing the plugin the way you prefer and adding this to your config: