1
0
Fork 0

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
1 changed files with 12 additions and 18 deletions

View File

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