mirror of
https://github.com/amix/vimrc
synced 2024-12-24 02:43:08 +00:00
36 lines
394 B
Text
36 lines
394 B
Text
snippet doc
|
|
/*
|
|
${0}
|
|
*/
|
|
snippet let
|
|
let ${1} = ${0};
|
|
snippet fn
|
|
let ${1} = (${2}) => {
|
|
${0}
|
|
};
|
|
snippet fun
|
|
fun ${1} => ${0}
|
|
snippet ty
|
|
type ${1} = ${0};
|
|
snippet mod
|
|
module ${1} = {
|
|
${0}
|
|
};
|
|
snippet modty
|
|
module type ${1} = {
|
|
${0}
|
|
};
|
|
snippet sw
|
|
switch (${1}) {
|
|
| ${2} => ${0}
|
|
}
|
|
snippet |
|
|
| ${1} => ${0}
|
|
snippet p
|
|
|> ${0}
|
|
snippet if
|
|
if (${1}) {
|
|
${2}
|
|
} else {
|
|
${0}
|
|
}
|