Generating snippets with functions #335
kunzaatko
started this conversation in
Show and tell
Replies: 2 comments 8 replies
-
Nice! That's pretty elegant 👍 |
Beta Was this translation helpful? Give feedback.
0 replies
-
That's so cool. I was going to do something similar. you saved me probably a couple of hours:) |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi! I wanted to share the way that I create TODO comment snippets. It allows me to change only one table to add another different signature and it quite nice to be able to check only one function and affect many snippets. Here it is:
Mark signatures
I have these options when selecting the mark component of the snippet:
Generation function
I use this function to generate the snippet:
Generating snippets
And finally I generate the snippets like so:
And here it is in action:
edit: Added automatic commentstring detection using the
Comment.nvim
pluginBeta Was this translation helpful? Give feedback.
All reactions