vim-lsc icon indicating copy to clipboard operation
vim-lsc copied to clipboard

Automatically insert parentheses of function on complete?

Open averms opened this issue 5 years ago • 2 comments

Completion-nvim has this feature where completing also adds parentheses if the symbol you are completing is a function. Something like

pri·

becomes

printf(·)

and a function with no arguments like getchar() puts the cursor after the parens. Can this be added?

averms avatar Nov 15 '20 01:11 averms

I'm looking for a way to enable this as well. I'm not sure if it should be handled individually in the language server or in LSC.

aonemd avatar Feb 16 '21 17:02 aonemd

Some language servers might handle it but I'm currently using nvim-cmp with nvim-autopairs which works for every language.

averms avatar Oct 09 '21 02:10 averms