1
0
Fork 0
mirror of synced 2024-11-14 05:08:56 -05:00
ultimate-vim/sources_non_forked/vim-snippets/snippets/kotlin.snippets
2021-06-30 12:00:07 -05:00

36 lines
457 B
Text
Executable file

snippet fun
fun ${1:name}(${2}): ${3:String} {
${4}
}
snippet pfun
private fun ${1:name}(${2}): ${3:String} {
${4}
}
snippet ret
return ${0}
snippet whe
when (${1:${VISUAL}}) {
${2} -> ${3}
}
snippet cla
class ${1} {
${0:${VISUAL}}
}
snippet cobj
companion object {
${0:${VISUAL}}
}
snippet obj
object ${1} {
${0:${VISUAL}}
}
snippet if
if (${1}) {
${0:${VISUAL}}
}
snippet ife
if (${1}) {
${2:${VISUAL}}
} else {
${0}
}