1
Fork 0

Many new snippets and homer update

This commit is contained in:
prescientmoon 2024-04-23 08:33:17 +02:00
parent aa6a5abcee
commit ed88b93171
Signed by: prescientmoon
SSH key fingerprint: SHA256:UUF9JT2s8Xfyv76b8ZuVL7XrmimH4o49p4b+iexbVH4
23 changed files with 287 additions and 405 deletions
home/features/neovim/snippets

View file

@ -10,7 +10,7 @@ block start auto
string @kind
name @kind definition
desc Define a @⟨@kind:type,newtype,adt⟩
snip data $1 = $2
snip @kind $1 = $2
string example
name example docstring
@ -44,18 +44,17 @@ block start auto
string derive
name derive typeclass instance
desc Derive a typeclass instance
snip
derive $|1⟨$1,newtype $1⟩instance $0
snip derive instance $|1⟨$1,newtype $1⟩instance $0
for typeclass <- @⟨Eq,Ord,Functor⟩
string d@⟨@typeclass:eq,ord,functor⟩
name derive @typeclass
snip derive @typeclass $0
snip derive instance @typeclass $0
for typeclass <- @⟨Newtype,Generic⟩
string d@⟨@typeclass:newtype,generic⟩
name derive @typeclass
snip derive @typeclass $1 _
snip derive instance @typeclass $1 _
for typeclass <- @⟨Show,Debug⟩
for lower <- @⟨@typeclass:show,debug⟩