diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-11-22 23:26:32 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-11-22 23:26:32 +0800 |
commit | d0ff66c9abe9d6abbca12fd811e0c3cb69c1033a (patch) | |
tree | bb34518d70b85de7656dbdbe958dfa221a3ff3b3 /server/platform.lua | |
parent | 0a2c2ad15e1ec359171fb0dd4c72e57c5b66e9ba (diff) | |
download | lua-language-server-d0ff66c9abe9d6abbca12fd811e0c3cb69c1033a.zip |
整理一下目录结构
Diffstat (limited to 'server/platform.lua')
-rw-r--r-- | server/platform.lua | 26 |
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 |