Update invidious and some other nvim stuff
This commit is contained in:
parent
e58eb41fb1
commit
3c1f1d71f3
15 changed files with 170 additions and 146 deletions
home/features/neovim/snippets
|
@ -6,4 +6,6 @@ block auto
|
|||
abbr leq <=
|
||||
abbr geq >=
|
||||
abbr land /\
|
||||
abbr lor /\
|
||||
abbr lor \/
|
||||
abbr langle ⟨
|
||||
abbr rangle \⟩
|
||||
|
|
|
@ -92,8 +92,8 @@ block math
|
|||
$7 & $8 & $9
|
||||
\end{@matenv}
|
||||
|
||||
for operator <- @⟨eq,neq,defas,leq,geq,lt,gt,iip,iib⟩
|
||||
for symbol <- @⟨@operator:=,\neq,\coloneq,\leq,\geq,<,>,\implies,\impliedby⟩
|
||||
for operator <- @⟨eq,neq,defas,leq,geq,lt,gt,iip,iib,iff⟩
|
||||
for symbol <- @⟨@operator:=,\neq,\coloneq,\leq,\geq,<,>,\implies,\impliedby,\iff⟩
|
||||
|
||||
block auto
|
||||
abbr @operator @symbol
|
||||
|
@ -102,16 +102,16 @@ block math
|
|||
name align at @operator
|
||||
snip &@symbol $0
|
||||
|
||||
block auto start
|
||||
string al@operator
|
||||
name aligned @operator
|
||||
snip
|
||||
\\\\ $1 &@symbol $2
|
||||
$0
|
||||
block start
|
||||
string al@operator
|
||||
name aligned @operator
|
||||
snip
|
||||
\\\\ $1 &@symbol $2
|
||||
$0
|
||||
|
||||
string cr@operator
|
||||
name start with @operator
|
||||
snip \\\\&@symbol $0
|
||||
string cr@operator
|
||||
name start with @operator
|
||||
snip \\\\&@symbol $0
|
||||
|
||||
block start
|
||||
string eqsystem
|
||||
|
@ -224,13 +224,22 @@ block math
|
|||
snip ^{$1} $0
|
||||
|
||||
pattern (%a)(.)pp
|
||||
name auto parenthesis
|
||||
name auto function call
|
||||
snip @0(@1) $0
|
||||
|
||||
pattern (%a)d(.)p
|
||||
name auto parenthesis
|
||||
name auto derivative call
|
||||
snip @0'(@1) $0
|
||||
|
||||
pattern (%a)i(.)p
|
||||
name auto preimage call
|
||||
snip @0^{-1}(@1) $0
|
||||
|
||||
block !word
|
||||
abbr .inv ^{-1}
|
||||
abbr .neg _-
|
||||
abbr .pos _+
|
||||
|
||||
for limtarget <- @⟨anything,zero,infinity,negative infinity⟩
|
||||
for prefix <- @⟨@limtarget:,z,i,n⟩
|
||||
for limtargetsymbol <- @⟨@limtarget:$2,0,\infty,-\infty⟩
|
||||
|
|
75
home/features/neovim/snippets/typst.miros
Normal file
75
home/features/neovim/snippets/typst.miros
Normal file
|
@ -0,0 +1,75 @@
|
|||
block auto start
|
||||
for thmenv <- @⟨lemma,theorem,corollary,definition⟩
|
||||
string @thmenv
|
||||
snip
|
||||
#@thmenv$|1⟨(name: "$1"),$1⟩[
|
||||
$0
|
||||
]
|
||||
|
||||
for proofenv <- @⟨proof,solution⟩
|
||||
string @proofenv
|
||||
snip
|
||||
#@proofenv$|1⟨$1,(name: "$1")⟩[
|
||||
$0
|
||||
]
|
||||
|
||||
string dm
|
||||
name display math
|
||||
snip
|
||||
$
|
||||
$0
|
||||
$
|
||||
|
||||
block auto
|
||||
string ccf
|
||||
name continuously differentiable function
|
||||
snip $C^1$
|
||||
|
||||
string ftdef
|
||||
name function type definition
|
||||
snip $$1 : $2 → $3$ $0
|
||||
|
||||
block auto
|
||||
string tdif
|
||||
name total derivative
|
||||
snip (dif $1) / (dif $2) $0
|
||||
|
||||
string pdif
|
||||
name partial derivative
|
||||
snip (diff $1) / (diff $2) $0
|
||||
|
||||
string dint
|
||||
name definite integral
|
||||
snip ∫_$|1⟨$1,(-∞$1)⟩^$|2⟨$2,∞$2⟩ $3 dif $0
|
||||
|
||||
block !word
|
||||
abbr .inv ^(-1)
|
||||
abbr .neg _-
|
||||
abbr .pos _+
|
||||
|
||||
for limtarget <- @⟨anything,zero,infinity,negative infinity⟩
|
||||
for prefix <- @⟨@limtarget:,z,i,n⟩
|
||||
for limtargetsymbol <- @⟨@limtarget:$2,0,∞,-∞⟩
|
||||
string @prefix⋄lim
|
||||
name limit to @limtarget
|
||||
snip lim_($1 → @limtargetsymbol) $0
|
||||
|
||||
for operator <- @⟨eq,neq,defas,leq,geq,lt,gt,iip,iib,iff⟩
|
||||
for symbol <- @⟨@operator:=,≠,≔,≤,≥,<,>,⟹,⟸,⟺⟩
|
||||
|
||||
abbr @operator @symbol
|
||||
|
||||
string a@operator
|
||||
name align at @operator
|
||||
snip &@symbol $0
|
||||
|
||||
block start
|
||||
string al@operator
|
||||
name aligned @operator
|
||||
snip
|
||||
\ $1 &@symbol $2
|
||||
$0
|
||||
|
||||
string cr@operator
|
||||
name start with @operator
|
||||
snip \ &@symbol $0
|
Loading…
Add table
Add a link
Reference in a new issue