Add a function to autocomplete ')' after ')'

I'm anxious whether you like this function.
However it is a function that I've implemented in my own project.

I've been watching and learned  a lot from your project.
Thank you.