ssr.nvim icon indicating copy to clipboard operation
ssr.nvim copied to clipboard

Expose a command

Open romgrk opened this issue 3 years ago • 2 comments

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

romgrk avatar Dec 03 '22 22:12 romgrk

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?

cshuaimin avatar Dec 27 '22 02:12 cshuaimin

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

symphorien avatar Feb 11 '23 21:02 symphorien