summary refs log tree commit diff
path: root/.vim/snippets/text.lua
blob: 9fca88fa20d9f2186a0b9f959ef173718e4c3285 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
---@diagnostic disable: undefined-global
return {
  s('test', t('test inserted')),
  -- licenses (full-text)
  s(
    { trig = 'license-mit', name = 'MIT license' },
    file_contents(vim.fn.stdpath('config') .. '/snippets/.licenses/mit', {
      year = f(function()
        return os.date('%Y')
      end, {}),
      copyright = sn(1, user_email),
    })
  ),
  s(
    { trig = 'license-gpl-3.0', name = 'GPL-3.0 license' },
    file_contents(vim.fn.stdpath('config') .. '/snippets/.licenses/gpl-3.0', {})
  ),
  s(
    { trig = 'license-agpl-3.0', name = 'AGPL-3.0 license' },
    file_contents(vim.fn.stdpath('config') .. '/snippets/.licenses/agpl-3.0', {})
  ),
  s(
    { trig = 'license-cc0-1.0', name = 'CC-Zero-1.0 license' },
    file_contents(vim.fn.stdpath('config') .. '/snippets/.licenses/cc0-1.0', {})
  ),
}