diff options
| author | Robert Günzler <r@gnzler.io> | 2021-11-02 17:30:24 +0100 |
|---|---|---|
| committer | Robert Günzler <r@gnzler.io> | 2021-11-02 19:06:47 +0100 |
| commit | 15a7ac4890dea48be140350c295d4d9ea05292ee (patch) | |
| tree | e0405ddaa98fa30ec336d2504a244e52b4910524 /.vim/after/snippets/ebuild.snippets.todo | |
| parent | 3768a6c1488c148cc07481687a47cb7cce02ad35 (diff) | |
vim: switch from ultisnips+snippets.nvim to snippy
Diffstat (limited to '.vim/after/snippets/ebuild.snippets.todo')
| -rw-r--r-- | .vim/after/snippets/ebuild.snippets.todo | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/.vim/after/snippets/ebuild.snippets.todo b/.vim/after/snippets/ebuild.snippets.todo new file mode 100644 index 0000000..6856c61 --- /dev/null +++ b/.vim/after/snippets/ebuild.snippets.todo @@ -0,0 +1,25 @@ +snippet eapi7 "eapi7" +# Copyright `!v strftime('%Y')` Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DESCRIPTION="$2" +HOMEPAGE="$3" + +if [[ ${PV} = *9999* ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/$1/${PN}.git" +else + SRC_URI="https://github.com/$1/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" +fi + +LICENSE="MIT" +SLOT="0" +IUSE="" +KEYWORDS="~amd64 ~arm64 ~x86" + +DEPEND="$0" +RDEPEND="${DEPEND}" +BDEPEND="" +endsnippet |