summaryrefslogtreecommitdiff
path: root/server/src/core/snippet.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-08-27 17:16:42 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-08-27 17:16:42 +0800
commit4376c804058f8f3a2895c7795df4f102b8879084 (patch)
treed680a7662fa0d2d2d055b5f350e52cf81357cb73 /server/src/core/snippet.lua
parenta90fa730acdbd823e556dcbc66ab8a360650c290 (diff)
downloadlua-language-server-4376c804058f8f3a2895c7795df4f102b8879084.zip
支持关键字代码片段
Diffstat (limited to 'server/src/core/snippet.lua')
-rw-r--r--server/src/core/snippet.lua16
1 files changed, 16 insertions, 0 deletions
diff --git a/server/src/core/snippet.lua b/server/src/core/snippet.lua
new file mode 100644
index 00000000..d29f4533
--- /dev/null
+++ b/server/src/core/snippet.lua
@@ -0,0 +1,16 @@
+local snippet = {}
+
+snippet.key = {}
+
+snippet.key['do'] = {
+ {
+ label = 'do .. end',
+ text = [[
+do
+ $0
+end
+]]
+ }
+}
+
+return snippet