Update snippet lists

This commit is contained in:
Danila Fedorin 2022-06-03 15:48:35 -07:00
parent cedb3a802a
commit edc3ccce17
2 changed files with 57 additions and 0 deletions

View File

@ -0,0 +1,37 @@
snippet md "map with do" w
map do |${1:e}|
$2
end
$0
endsnippet
snippet m{ "map with {" w
map({ |${1:e}| $2 })
endsnippet
snippet ed "each with do" w
each do |${1:e}|
$2
end
$0
endsnippet
snippet e{ "each with {" w
each({ |${1:e}| $2 })
endsnippet
snippet b "apply block" w
${1:min_by}({|${2:e}| $3 })
endsnippet
snippet set "create set" w
Set(${1:Int32}).new
endsnippet
snippet ha "create hash" w
Hash($1).new
endsnippet
snippet in "includes?" w
includes?($1)
endsnippet

View File

@ -22,6 +22,12 @@ snippet ssec
\subsection*{$1} \subsection*{$1}
endsnippet endsnippet
snippet ol
\begin{itemize}
$1
\end{itemize}
endsnippet
snippet alist snippet alist
\begin{enumerate}[label=\alph*)] \begin{enumerate}[label=\alph*)]
$1 $1
@ -47,3 +53,17 @@ endsnippet
snippet e snippet e
\epsilon \epsilon
endsnippet endsnippet
snippet hs
\begin{lstlisting}[language=Haskell]
$1
\end{lstlisting}
endsnippet
snippet ns
\needscite{}
endsnippet
snippet todo
\TODO{$1}
endsnippet