add(nvim): scala .dbg snippet

pass everything thourgh a `.map(identity)` while printing everything
inside
This commit is contained in:
Léana 江 2023-05-05 22:55:20 +02:00 committed by Léana 江
parent 18da710d1e
commit 63fb93e796
2 changed files with 16 additions and 0 deletions

View file

@ -0,0 +1,12 @@
{
"Debug a flow chain of consecutive methods": {
"prefix": ".dbg",
"body": [
".map(x => {",
"// DEBUG: this in an identity function that debugs to println",
"\tprintln(x)",
"\tx",
"})"
]
}
}