summaryrefslogtreecommitdiff
path: root/server/platform.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-11-22 23:26:32 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-11-22 23:26:32 +0800
commitd0ff66c9abe9d6abbca12fd811e0c3cb69c1033a (patch)
treebb34518d70b85de7656dbdbe958dfa221a3ff3b3 /server/platform.lua
parent0a2c2ad15e1ec359171fb0dd4c72e57c5b66e9ba (diff)
downloadlua-language-server-d0ff66c9abe9d6abbca12fd811e0c3cb69c1033a.zip
整理一下目录结构
Diffstat (limited to 'server/platform.lua')
-rw-r--r--server/platform.lua26
1 files changed, 0 insertions, 26 deletions
diff --git a/server/platform.lua b/server/platform.lua
deleted file mode 100644
index 5384ad3d..00000000
--- a/server/platform.lua
+++ /dev/null
@@ -1,26 +0,0 @@
-local currentPath = debug.getinfo(1, 'S').source:sub(2)
-local rootPath = currentPath:gsub('[^/\\]-$', '')
-if package.loadlib(rootPath .. 'Windows/bin/bee.dll', 'luaopen_bee_platform') then
- if rootPath == '' then
- rootPath = '.\\'
- end
- package.cpath = rootPath .. 'Windows\\bin\\?.dll'
- package.path = rootPath .. 'src\\?.lua'
- .. ';' .. rootPath .. 'src\\?\\init.lua'
-elseif package.loadlib(rootPath .. 'macOS/bin/bee.so', 'luaopen_bee_platform') then
- if rootPath == '' then
- rootPath = './'
- end
- package.cpath = rootPath .. 'macOS/bin/?.so'
- package.path = rootPath .. 'src/?.lua'
- .. ';' .. rootPath .. 'src/?/init.lua'
-elseif package.loadlib(rootPath .. 'Linux/bin/bee.so', 'luaopen_bee_platform') then
- if rootPath == '' then
- rootPath = './'
- end
- package.cpath = rootPath .. 'Linux/bin/?.so'
- package.path = rootPath .. 'src/?.lua'
- .. ';' .. rootPath .. 'src/?/init.lua'
-else
- error([[It doesn't seem to support your OS, please let me know at https://github.com/sumneko/lua-language-server/issues]])
-end