diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-08-27 17:16:42 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-08-27 17:16:42 +0800 |
commit | 4376c804058f8f3a2895c7795df4f102b8879084 (patch) | |
tree | d680a7662fa0d2d2d055b5f350e52cf81357cb73 /server/src/core/snippet.lua | |
parent | a90fa730acdbd823e556dcbc66ab8a360650c290 (diff) | |
download | lua-language-server-4376c804058f8f3a2895c7795df4f102b8879084.zip |
支持关键字代码片段
Diffstat (limited to 'server/src/core/snippet.lua')
-rw-r--r-- | server/src/core/snippet.lua | 16 |
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 |