sharkdp / bat

A cat(1) clone with wings.
Apache License 2.0
48.77k stars 1.23k forks source link

*.snippets mapping for vim snippets #2396

Open TruncatedDinoSour opened 1 year ago

TruncatedDinoSour commented 1 year ago

Hello bat devs,

I have tried to add mapping for `*.snippets``, but I failed so I'm making this issue

Basically, it'd be nice if there was support for vimsnippets syntax, examples: https://github.com/honza/vim-snippets

I really don't think there's anything more to say, soooooo good luck if you try to implement it :)

TruncatedDinoSour commented 1 year ago

Here's an example:

snippet m
int main(void) {
    $0
    return 0;
}

endsnippet

snippet mv
int main(int argc, char *argv[]) {
    $0
    return 0;
}

endsnippet

Although this is not full syntax

Full syntax: https://github.com/SirVer/ultisnips