summaryrefslogtreecommitdiff
path: root/script-beta/provider/client.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-09-16 12:58:49 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-09-16 12:58:49 +0800
commitcfd28f56f6c0083aede3f16d47976337fecb28e9 (patch)
tree1bf2c8b11d847f03f49445f3a19c7b68f9b44c9e /script-beta/provider/client.lua
parent720824b2b118df49b7fa03a7ccc98bd48cbff2c6 (diff)
downloadlua-language-server-cfd28f56f6c0083aede3f16d47976337fecb28e9.zip
查看文档
Diffstat (limited to 'script-beta/provider/client.lua')
-rw-r--r--script-beta/provider/client.lua16
1 files changed, 16 insertions, 0 deletions
diff --git a/script-beta/provider/client.lua b/script-beta/provider/client.lua
new file mode 100644
index 00000000..a2671597
--- /dev/null
+++ b/script-beta/provider/client.lua
@@ -0,0 +1,16 @@
+local nonil = require 'without-check-nil'
+
+local m = {}
+
+function m.client()
+ nonil.enable()
+ local name = m.info.clientInfo.name
+ nonil.disable()
+ return name
+end
+
+function m.init(t)
+ m.info = t
+end
+
+return m