⚡ Vim – additional files and docs
This commit is contained in:
38
.config/coc/ultisnips/all.snippets
Normal file
38
.config/coc/ultisnips/all.snippets
Normal file
@ -0,0 +1,38 @@
|
||||
# A valid snippet should starts with:
|
||||
#
|
||||
# snippet trigger_word [ "description" [ options ] ]
|
||||
#
|
||||
# and end with:
|
||||
#
|
||||
# endsnippet
|
||||
#
|
||||
# Snippet options:
|
||||
#
|
||||
# b - Beginning of line.
|
||||
# i - In-word expansion.
|
||||
# w - Word boundary.
|
||||
# r - Regular expression
|
||||
# e - Custom context snippet
|
||||
# A - Snippet will be triggered automatically, when condition matches.
|
||||
#
|
||||
# Basic example:
|
||||
#
|
||||
# snippet emitter "emitter properties" b
|
||||
# private readonly ${1} = new Emitter<$2>()
|
||||
# public readonly ${1/^_(.*)/$1/}: Event<$2> = this.$1.event
|
||||
# endsnippet
|
||||
#
|
||||
# Online reference: https://github.com/SirVer/ultisnips/blob/master/doc/UltiSnips.txt
|
||||
snippet cmt "/* | */"
|
||||
${1}/* ${0} */
|
||||
endsnippet
|
||||
|
||||
snippet f "inline function"
|
||||
${1}function${2}(${3}){${0}}
|
||||
endsnippet
|
||||
|
||||
snippet fun "function"
|
||||
${1}function ${2:name}(${3:params}){
|
||||
${0:/* code */}
|
||||
}
|
||||
endsnippet
|
Reference in New Issue
Block a user