vim-lsc
vim-lsc copied to clipboard
Automatically insert parentheses of function on complete?
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?
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.
Some language servers might handle it but I'm currently using nvim-cmp with nvim-autopairs which works for every language.