From bbaf83513c5a41f97e0cbeb8a86b9f1d34b56b5a Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Fri, 18 Nov 2022 17:19:38 +0100 Subject: vim: setup spdx snippets --- .vim/snippets/all.lua | 5 +++++ 1 file changed, 5 insertions(+) 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]])})), } -- cgit 1.4.1