C++ overloaded functions don't seem to complete properly #1359
Unanswered
colliderman
asked this question in
Q&A
Replies: 1 comment
-
I have the same issue. Has there ever been a solution? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
I've only recently started using nvim-cmp and have got it working mostly well with C++, Clangd, and the built in neovim lsp, however I'm having the following issue:
When a function has multiple argument types, the completion window shows something like "2 overloads" for the description.
![Screen Shot 2022-12-19 at 3 34 51 PM](https://user-images.githubusercontent.com/42239540/208519578-623708ce-f5f8-40fb-865d-2da87ae62ac0.png)
Then when I select the function, the functions are displayed
![Screen Shot 2022-12-19 at 3 35 28 PM](https://user-images.githubusercontent.com/42239540/208519575-e5f3d367-30c9-416b-8d33-f0d65f25e2b7.png)
but when I select one it doesn't autofill the arguments for me, to allow for easy tabbing through them.
![Screen Shot 2022-12-19 at 3 35 57 PM](https://user-images.githubusercontent.com/42239540/208519573-87e9e16c-2bd7-43d5-8c2b-73e483713b2e.png)
If a function doesn't have an overload, then when I select it, it auto fills the arguments and I can start typing to fill in the first argument, hit tab, type out the second argument etc.
![Screen Shot 2022-12-19 at 3 37 10 PM](https://user-images.githubusercontent.com/42239540/208519570-964a59a1-1042-4609-bea8-5205cd2f684d.png)
![Screen Shot 2022-12-19 at 3 37 33 PM](https://user-images.githubusercontent.com/42239540/208519564-d7e053d6-0cb7-4c03-be15-a2fa6c9b3a1a.png)
Is this is expected behaviour or if not, maybe a setting that I haven't set properly?
Beta Was this translation helpful? Give feedback.
All reactions