0

So I'm doing a recursive snippet with yas

$>name: "${2:`(file-name-nondirectory (file-name-sans-extension (buffer-file-name)))`}"${3:,
$>np}$0

but yas inserts a new-line at the end of every snippet, and after a while, it looks like this:

foo: {
    name: "bar",
    name: "bar",
    name: "bar",
    name: "bar",




}

how do I stop this?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.