summary refs log tree commit diff
path: root/.vim
diff options
context:
space:
mode:
authorRobert Günzler <r@gnzler.io>2022-11-18 17:19:38 +0100
committerRobert Günzler <r@gnzler.io>2022-11-18 18:38:18 +0100
commitbbaf83513c5a41f97e0cbeb8a86b9f1d34b56b5a (patch)
tree4e5a89c4a51ef42840e55dcfa00f09ebb33431af /.vim
parent79c89d347b214a3c893b22dbf9dfa3547617a200 (diff)
vim: setup spdx snippets
Diffstat (limited to '.vim')
-rw-r--r--.vim/snippets/all.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/.vim/snippets/all.lua b/.vim/snippets/all.lua
index 673160f..ba26a8f 100644
--- a/.vim/snippets/all.lua
+++ b/.vim/snippets/all.lua
@@ -74,4 +74,9 @@ return {
       vim.fn.stdpath('config') .. '/snippets/.licenses/agpl-3.0', {})),
   s({trig='license-cc0-1.0', name='CC-Zero-1.0 license'}, from_file(
       vim.fn.stdpath('config') .. '/snippets/.licenses/cc0-1.0', {})),
+  -- licenses (SPDX header)
+  s({trig='spdx-mit', name='MIT license'}, comment({t([[SPDX-License-Identifier: MIT]])})),
+  s({trig='spdx-gpl-3.0', name='MIT license'}, comment({t([[SPDX-License-Identifier: GPL-3.0]])})),
+  s({trig='spdx-agpl-3.0', name='MIT license'}, comment({t([[SPDX-License-Identifier: AGPL-3.0]])})),
+  s({trig='spdx-cc0-1.0', name='MIT license'}, comment({t([[SPDX-License-Identifier: CC0-1.0]])})),
 }