1
0
Fork 0

nvim: snippets: don't cache inserts

This commit is contained in:
tastytea 2022-08-13 00:31:02 +02:00
parent 26f520e509
commit feb385b694
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM
1 changed files with 24 additions and 8 deletions

View File

@ -51,10 +51,18 @@ return {
dscr = 'Inserts the GNU Affero General Public License, version 3'
},
fmt(agpl, {
project = MY_get_project_root():gsub('.*/', ''),
year = f(function() return os.date('%Y') end),
name = MY_shell_capture('git config user.name'),
email = MY_shell_capture('git config user.email'),
project = f(function()
return MY_get_project_root():gsub('.*/', '')
end),
year = f(function()
return os.date('%Y')
end),
name = f(function()
return MY_shell_capture('git config user.name')
end),
email = f(function()
return MY_shell_capture('git config user.email')
end),
cursor = i()
})
),
@ -65,10 +73,18 @@ return {
dscr = 'Inserts the BSD Zero Clause License'
},
fmt(bsd0, {
project = MY_get_project_root():gsub('.*/', ''),
year = f(function() return os.date('%Y') end),
name = MY_shell_capture('git config user.name'),
email = MY_shell_capture('git config user.email'),
project = f(function()
return MY_get_project_root():gsub('.*/', '')
end),
year = f(function()
return os.date('%Y')
end),
name = f(function()
return MY_shell_capture('git config user.name')
end),
email = f(function()
return MY_shell_capture('git config user.email')
end),
cursor = i()
})
)