tigersoldier / company-lsp

Company completion backend for lsp-mode
GNU General Public License v3.0
251 stars 26 forks source link

In C and C++ mode, locations of `*' and `&' are different between function declaration and completion candidates #134

Open nanuda opened 4 years ago

nanuda commented 4 years ago

Let' say I declare a function foo in header file likes below void foo(int* n); // Note that the asterisk is on the type side

But the signature of foo function in completion candidates is like void foo(int *n). Now asterisk is on the variable side. After I selected the candidate, inserted function is same as candidate signature.

I just want function declaration and inserted function to have same signature. Is there any way to solve this issue?