Language server for snippets.
- : textDocument/completion.
- : load snippet from YAML file.
- : single YAML file support.
- : multi YAML file support.
- : glob support.
- : insert indent
- : supply template if content is empty.
- : load snippet from YAML file.
- :
file extension to file type mapping mechanism- supported by YAML anchor and alias. See: AnchorAndAlias.yaml
- : incremental synchronization
java --add-modules=ALL-SYSTEM --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED -Declipse.application=org.eclipse.jdt.ls.core.id1 -Dosgi.bundles.defaultStartLevel=4 -Declipse.product=org.eclipse.jdt.ls.core.product -Dlog.level=ALL -noverify -Dfile.encoding=UTF-8 -Xmx1G -jar /PATH/TO/lsp4snippet-x.y.z.jar --snippet /PATH/TO/Configuration.yaml
- OpenJDK 11 or higher
example:
snippets:
javascript:
- label: func
description: function
newText: |-
function ${1:name}(${2:args}) {
${3:content}
}
- label: if
description: if statement
newText: |-
if (${1:condition}) {
${2:expr}
}
- label: for
description: for statement
newText: |-
for (${1:initial} : ${2:condition} : ${3:increment}) {
${4:expr}
}
Copyright (c) 2019 mikoto2000
This program and the accompanying materials are made
available under the terms of the Eclipse Public License 2.0
which is available at https://www.eclipse.org/legal/epl-2.0/
mikoto2000 mikoto2000@gmail.com