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

Expose a command #9

Open
romgrk opened this issue Dec 3, 2022 · 2 comments
Open

Expose a command #9

romgrk opened this issue Dec 3, 2022 · 2 comments

Comments

@romgrk
Copy link

romgrk commented Dec 3, 2022

Mapping a command is less verbose than mapping a lua function.

@cshuaimin
Copy link
Owner

Ideally we can use ssr rules with command like :SSR f($a) ==>> $a.f(), but this is not possible now because I don't know how to specify context node. Maybe we should make context optional?

@symphorien
Copy link

Maybe the context node can be the first match in the current line (or in the selection with '<,'>) ?

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

3 participants