mirror of
https://github.com/cap153/nvim.git
synced 2025-12-30 05:55:32 +08:00
first commit
This commit is contained in:
commit
6955e90e07
61 changed files with 3641 additions and 0 deletions
38
UltiSnips/typescriptreact.snippets
Normal file
38
UltiSnips/typescriptreact.snippets
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
snippet ssg "NextJS ServerSide Generation"
|
||||
export async function getStaticProps() {
|
||||
return {
|
||||
props: {
|
||||
//
|
||||
},
|
||||
};
|
||||
}
|
||||
endsnippet
|
||||
|
||||
snippet t "Tag"
|
||||
<${1:div}>
|
||||
${2}
|
||||
</${1}>
|
||||
${0}
|
||||
endsnippet
|
||||
|
||||
snippet ta "Tag with Attributes"
|
||||
<${1:div} ${2:className=""}>
|
||||
${3}
|
||||
</${1}>
|
||||
${0}
|
||||
endsnippet
|
||||
|
||||
snippet tn "Tag with class Names"
|
||||
<${1:div} className="${2}">
|
||||
${0}
|
||||
</${1}>
|
||||
endsnippet
|
||||
|
||||
snippet ti "Tag Inline"
|
||||
<${1} />
|
||||
${0}
|
||||
endsnippet
|
||||
|
||||
snippet br "<br />"
|
||||
<br />
|
||||
endsnippet
|
||||
Loading…
Add table
Add a link
Reference in a new issue