Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically insert parentheses of function on complete? #357

Open
averms opened this issue Nov 15, 2020 · 2 comments
Open

Automatically insert parentheses of function on complete? #357

averms opened this issue Nov 15, 2020 · 2 comments

Comments

@averms
Copy link

averms commented Nov 15, 2020

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?

@aonemd
Copy link

aonemd commented Feb 16, 2021

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.

@averms
Copy link
Author

averms commented Oct 9, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants