Update snippet lists
This commit is contained in:
parent
cedb3a802a
commit
edc3ccce17
37
nvim/.config/nvim/UltiSnips/crystal.snippets
Normal file
37
nvim/.config/nvim/UltiSnips/crystal.snippets
Normal 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
|
|
@ -22,6 +22,12 @@ snippet ssec
|
|||
\subsection*{$1}
|
||||
endsnippet
|
||||
|
||||
snippet ol
|
||||
\begin{itemize}
|
||||
$1
|
||||
\end{itemize}
|
||||
endsnippet
|
||||
|
||||
snippet alist
|
||||
\begin{enumerate}[label=\alph*)]
|
||||
$1
|
||||
|
@ -47,3 +53,17 @@ endsnippet
|
|||
snippet e
|
||||
\epsilon
|
||||
endsnippet
|
||||
|
||||
snippet hs
|
||||
\begin{lstlisting}[language=Haskell]
|
||||
$1
|
||||
\end{lstlisting}
|
||||
endsnippet
|
||||
|
||||
snippet ns
|
||||
\needscite{}
|
||||
endsnippet
|
||||
|
||||
snippet todo
|
||||
\TODO{$1}
|
||||
endsnippet
|
||||
|
|
Loading…
Reference in New Issue
Block a user