diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-09-16 21:33:03 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-09-16 21:33:03 +0800 |
commit | 8634a138bd2db51167fee0c96744ad23399a3ad3 (patch) | |
tree | 56499ec23e9d45d078c1be1c3b0b82771b7d442a /.vscode/lua-plugin | |
parent | b13de09a6f1bec8d36aba4dc231a434dc1c50340 (diff) | |
download | lua-language-server-8634a138bd2db51167fee0c96744ad23399a3ad3.zip |
加载插件
Diffstat (limited to '.vscode/lua-plugin')
-rw-r--r-- | .vscode/lua-plugin/example.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/.vscode/lua-plugin/example.lua b/.vscode/lua-plugin/example.lua new file mode 100644 index 00000000..0432b162 --- /dev/null +++ b/.vscode/lua-plugin/example.lua @@ -0,0 +1,6 @@ +function OnRequirePath(literal, raw) + if type(literal) == 'string' then + return literal + end + return raw:match '[^%.]+$' +end |