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

JavaScript-like Anonymous function support #326

Open
aminnairi opened this issue May 16, 2021 · 0 comments
Open

JavaScript-like Anonymous function support #326

aminnairi opened this issue May 16, 2021 · 0 comments

Comments

@aminnairi
Copy link

aminnairi commented May 16, 2021

It would be great to be able to create an anonymous function using this plugin for JavaScript and other language that have a similiar syntax.

This could use a let g:vim_surround_lambda_bracket_symbol = " {}" for setting the lambda (anonymous) function bracket style per-language.

This could also be using the l letter for specifying the lambda expression like ysiwl. Used in a word like options this would ideally output function(options) {}.

Do you think this is possible? Is it too much?

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

1 participant