summaryrefslogtreecommitdiff
path: root/vim-extra/.config/nvim/UltiSnips
diff options
context:
space:
mode:
Diffstat (limited to 'vim-extra/.config/nvim/UltiSnips')
-rw-r--r--vim-extra/.config/nvim/UltiSnips/go.snippets14
-rw-r--r--vim-extra/.config/nvim/UltiSnips/latex.snippets10
-rw-r--r--vim-extra/.config/nvim/UltiSnips/tex.snippets44
3 files changed, 0 insertions, 68 deletions
diff --git a/vim-extra/.config/nvim/UltiSnips/go.snippets b/vim-extra/.config/nvim/UltiSnips/go.snippets
deleted file mode 100644
index 96a9fec..0000000
--- a/vim-extra/.config/nvim/UltiSnips/go.snippets
+++ /dev/null
@@ -1,14 +0,0 @@
-snippet ec "if err no nil"
-if err != nil {
- return $1err
-}
-$0
-endsnippet
-
-snippet eh "if err no nil write http"
-if err != nil {
- ${1:http}.Error(w, err.Error(), http.Status${2:InternalServerError})
- return
-}
-$0
-endsnippet
diff --git a/vim-extra/.config/nvim/UltiSnips/latex.snippets b/vim-extra/.config/nvim/UltiSnips/latex.snippets
deleted file mode 100644
index a3e508f..0000000
--- a/vim-extra/.config/nvim/UltiSnips/latex.snippets
+++ /dev/null
@@ -1,10 +0,0 @@
-# https://castel.dev/post/lecture-notes-1/
-snippet beg "begin{} / end{}" bA
-\begin{$1}
- $0
-\end{$1}
-endsnippet
-
-snippet mk "Inline math" wA
-$${1}$
-end
diff --git a/vim-extra/.config/nvim/UltiSnips/tex.snippets b/vim-extra/.config/nvim/UltiSnips/tex.snippets
deleted file mode 100644
index 1cdc972..0000000
--- a/vim-extra/.config/nvim/UltiSnips/tex.snippets
+++ /dev/null
@@ -1,44 +0,0 @@
-# https://castel.dev/post/lecture-notes-1/
-snippet begin "begin{} / end{}" bA
-\begin{$1}
- $0
-\end{$1}
-endsnippet
-
-snippet dm "Display math" wA
-\[
-$1
-.\] $0
-endsnippet
-
-# Subscript
-snippet _p "Subscript" iA
-_{$1}$0
-endsnippet
-
-# To the power of
-snippet td "To the power of" iA
-^{$1}$0
-endsnippet
-
-# Fraction
-snippet // "Fraction" iA
-\\frac{$1}{$2}$0
-endsnippet
-
-# Integral
-snippet \int_ "Bestemt intergrale" wA
-\int_{$1}^{$2} $3 \,dx$0
-:qa
-endsnippet
-
-# Section and stuff
-snippet sec "Section" bA
-\section{$1}
-$0
-endsnippet
-
-snippet ssec "Sub section" bA
-\subsection{$1}
-$0
-endsnippet