nvim: reformat cpp snippets

This commit is contained in:
tastytea 2022-08-20 03:33:35 +02:00
parent 061d55f643
commit bc4b23d2a5
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM

View File

@ -43,12 +43,10 @@ local bsd0 =
local my = require('my.functions') local my = require('my.functions')
return { return {
s( s({ trig = 'AGPL',
{ name = 'AGPL-3.0-only',
trig = 'AGPL', dscr = 'Inserts the GNU Affero General Public License, version 3'
name = 'AGPL-3.0-only', },
dscr = 'Inserts the GNU Affero General Public License, version 3'
},
fmt(agpl, { fmt(agpl, {
project = f(function() project = f(function()
local root = my.get_project_root() local root = my.get_project_root()
@ -66,15 +64,12 @@ return {
return my.shell_capture('git config user.email') return my.shell_capture('git config user.email')
or 'INSERT_EMAIL' or 'INSERT_EMAIL'
end), end),
cursor = i() cursor = i(0)
}) })),
), s({ trig = '0BSD',
s( name = '0BSD',
{ dscr = 'Inserts the BSD Zero Clause License'
trig = '0BSD', },
name = '0BSD',
dscr = 'Inserts the BSD Zero Clause License'
},
fmt(bsd0, { fmt(bsd0, {
project = f(function() project = f(function()
local root = my.get_project_root() local root = my.get_project_root()
@ -92,7 +87,6 @@ return {
return my.shell_capture('git config user.email') return my.shell_capture('git config user.email')
or 'INSERT_EMAIL' or 'INSERT_EMAIL'
end), end),
cursor = i() cursor = i(0)
}) }))
)
} }