summaryrefslogtreecommitdiff
path: root/.vscode/lua-plugin
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-09-16 21:33:03 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-09-16 21:33:03 +0800
commit8634a138bd2db51167fee0c96744ad23399a3ad3 (patch)
tree56499ec23e9d45d078c1be1c3b0b82771b7d442a /.vscode/lua-plugin
parentb13de09a6f1bec8d36aba4dc231a434dc1c50340 (diff)
downloadlua-language-server-8634a138bd2db51167fee0c96744ad23399a3ad3.zip
加载插件
Diffstat (limited to '.vscode/lua-plugin')
-rw-r--r--.vscode/lua-plugin/example.lua6
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