summaryrefslogtreecommitdiff
path: root/script/core
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2023-01-30 15:58:16 +0800
committer最萌小汐 <sumneko@hotmail.com>2023-01-30 15:58:16 +0800
commitbb3f84633b01afb0a2f719645f8176f491fb7694 (patch)
tree1fa30479859b9c39656562e35449bad8feae64c1 /script/core
parentc69e65f5468a3aff99f1de11ee7c72a0d9f75afe (diff)
downloadlua-language-server-bb3f84633b01afb0a2f719645f8176f491fb7694.zip
add command `lua.getConfig`
Diffstat (limited to 'script/core')
-rw-r--r--script/core/command/getConfig.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/script/core/command/getConfig.lua b/script/core/command/getConfig.lua
new file mode 100644
index 00000000..86a06b88
--- /dev/null
+++ b/script/core/command/getConfig.lua
@@ -0,0 +1,5 @@
+local config = require 'config'
+
+return function (data)
+ return config.get(data[1].uri, data[1].key)
+end