diff options
| author | Robert Günzler <r@gnzler.io> | 2021-07-29 23:39:08 +0200 |
|---|---|---|
| committer | Robert Günzler <r@gnzler.io> | 2021-07-29 23:40:32 +0200 |
| commit | 3079e935c793a9aa1831fd165e28636eb7a87dae (patch) | |
| tree | e832ac6a08ad70c14c01b1eac32ac1b5eec3549f /.vim/UltiSnips | |
| parent | cefbce656c511a3583744ed7735aa71249b73500 (diff) | |
vim: cleanup config
Diffstat (limited to '.vim/UltiSnips')
| -rw-r--r-- | .vim/UltiSnips/dockerfile.snippets | 17 | ||||
| -rw-r--r-- | .vim/UltiSnips/tex.snippets | 20 |
2 files changed, 10 insertions, 27 deletions
diff --git a/.vim/UltiSnips/dockerfile.snippets b/.vim/UltiSnips/dockerfile.snippets index 304a00a..c8d7502 100644 --- a/.vim/UltiSnips/dockerfile.snippets +++ b/.vim/UltiSnips/dockerfile.snippets @@ -1,7 +1,7 @@ # vim: ft=snippets: -snippet skel "skeleton" b -#syntax=docker/dockerfile:1-experimental +snippet FROM:skel "skeleton" b +#syntax=docker/dockerfile:1.2 FROM docker.io/library/alpine:3${1} $0 @@ -9,24 +9,23 @@ $0 #vim: ft=Dockerfile: endsnippet -snippet from:buildpl "FROM --platform=$BUILDPLATFORM" +snippet FROM:alpine "FROM --platform=$BUILDPLATFORM" FROM --platform=$BUILDPLATFORM docker.io/library/alpine:3${1} AS base ARG TARGETPLATFORM RUN apk -U add --no-cache $0 endsnippet -snippet from:final "FROM scratch AS final" +snippet FROM:final "FROM scratch AS final" FROM scratch AS final COPY --from=build /out/* / endsnippet -snippet run "RUN" b -RUN --mount=type=bind,target=. \ - --mount=type=cache,target=/root/.cache \ +snippet RUN "RUN" b +RUN --mount=target=. \ + --mount=target=${1:/root/.cache},type=cache \ ${0} endsnippet -snippet xx "tonistiigi/xx" b +snippet FROM:xx "tonistiigi/xx" b FROM --platform=$BUILDPLATFORM docker.io/tonistiigi/xx:${1:golang} AS xx -${0}COPY --from=xx / / endsnippet diff --git a/.vim/UltiSnips/tex.snippets b/.vim/UltiSnips/tex.snippets index bc92b06..de9a974 100644 --- a/.vim/UltiSnips/tex.snippets +++ b/.vim/UltiSnips/tex.snippets @@ -1,18 +1,3 @@ -snippet \begin "begin{} .. end{}" bA -\begin{$1}$2 -$0 -\end{$1} -endsnippet - -snippet $$ "math env $$" wA -$${1}$ $0 -endsnippet -snippet \[ "math block \[" iA -\[ - ${1:${VISUAL}} -.\] $0 -endsnippet - snippet frac "\\frac" iA \\frac{$1}{$2}$0 endsnippet @@ -30,7 +15,7 @@ snippet -> "\to" wA \to endsnippet -snippet latex "\documentclass{report}" +snippet report "\documentclass{report}" \documentclass{report} \usepackage[a4paper,margin=30truemm]{geometry} \usepackage{polyglossia} @@ -41,10 +26,9 @@ snippet latex "\documentclass{report}" \title{$1} \author{Robert Günzler} -\date{`!v strftime('%Y-%m-%d')`} +\date{\today} \begin{document} -\title{awesome title} $0 |