From 5bfbbc8d623e5fe7d7e94380ab539a4afef2b1a0 Mon Sep 17 00:00:00 2001 From: TiynGER Date: Mon, 6 Apr 2020 16:13:41 +0200 Subject: [PATCH] ultisnips now better than ever before --- .config/coc/ultisnips/html.snippets | 35 ++++++++++++-------- .config/coc/ultisnips/tex.snippets | 51 +++++++++++++++-------------- 2 files changed, 48 insertions(+), 38 deletions(-) diff --git a/.config/coc/ultisnips/html.snippets b/.config/coc/ultisnips/html.snippets index 58ba4d9..0d236bf 100644 --- a/.config/coc/ultisnips/html.snippets +++ b/.config/coc/ultisnips/html.snippets @@ -19,63 +19,70 @@ # # snippet emitter "emitter properties" b # private readonly ${1} = new Emitter<$2>() -# public readonly ${1/^_(.*)/$1/}: Event<$2> = this.$1.event +# public readonly ${1/^_(.*)/$2/}: Event<$2> = this.$2.event # endsnippet # # Online reference: https://github.com/SirVer/ultisnips/blob/master/doc/UltiSnips.txt snippet ,b "Bold" A -$0 +$1 $2 endsnippet snippet ,it "Italics" A -$0 +$1 $2 endsnippet snippet ,1 "Header 1" A -

$0

+

$1

+$2 endsnippet snippet ,2 "Header 2" A -

$0

+

$1

+$2 endsnippet snippet ,3 "Header 3" A -

$0

+

$1

+$2 endsnippet snippet ,p "Paragraph" A -

$0

+

$1

+$2 endsnippet snippet ,a "Hyperlink" A -$1 +$2 $3 endsnippet snippet ,e "External Hyperlink" A -$1 +$2 $3 endsnippet snippet ,ul "Itemization" A endsnippet snippet ,li "List Element" A -
  • $0
  • +
  • $1
  • +$2 endsnippet snippet ,ol "Enumeration" A
      -
    1. $0
    2. +
    3. $1
    4. + $2
    endsnippet snippet ,im "Image" A -$1 +$2 $3 endsnippet snippet & "Et Sign" A -& +& $1 endsnippet diff --git a/.config/coc/ultisnips/tex.snippets b/.config/coc/ultisnips/tex.snippets index 35963fb..09962bb 100644 --- a/.config/coc/ultisnips/tex.snippets +++ b/.config/coc/ultisnips/tex.snippets @@ -26,89 +26,92 @@ snippet ,fr "Frame" A \begin{frame} - \frametitle{} - $0 + \frametitle{$1} + $2 \end{frame} endsnippet snippet ,em "Emphasis" A -\emph{$0} +\emph{$1} endsnippet snippet ,bf "Bold" A -\textbf{$0} +\textbf{$1} $2 endsnippet snippet ,it "Italic" A -\textit{$0} +\textit{$1} $2 endsnippet snippet ,ct "Text cite" A -\textcite{$0} +\textcite{$1} $2 endsnippet snippet ,cp "Parenthesis cite" A -\parencite{$0} +\parencite{$1} $2 endsnippet snippet ,ol "Enumeration" A \begin{enumerate} - \item $0 + \item $1 + $2 \end{enumerate} endsnippet snippet ,ul "Itemization" A \begin{itemize} - \item $0 + \item $1 + $2 \end{itemize} endsnippet snippet ,li "List element" A -\item $0 +\item $1 +$2 endsnippet snippet ,ref "Reference" A -\ref{$0} +\ref{$1} $2 endsnippet snippet ,tab "Tabular" A \begin{tabular} -$0 +$1 \end{tabular} endsnippet snippet ,a "Hyperlink" A -\href{$0}{$1} +\href{$1}{$2} endsnippet snippet ,sc "Small caps" A -\textsc{$0} +\textsc{$1} $2 endsnippet snippet ,chap "Chapter" A -\chapter{$0} -$1 +\chapter{$1} +$2 endsnippet snippet ,sec "Section" A -\section{$0} -$1 +\section{$1} +$2 endsnippet snippet ,ssec "Subsection" A -\subsection{$0} -$1 +\subsection{$1} +$2 endsnippet snippet ,sssec "Subsubsection" A -\subsubsection{$0} -$1 +\subsubsection{$1} +$2 endsnippet snippet ,up "Use Packagage" A -\usepackage{$0} +\usepackage{$1} endsnippet snippet ,tt "Typewriter" A -\texttt{$0} +\texttt{$1} $2 endsnippet