summaryrefslogtreecommitdiff
path: root/script/platform.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/platform.lua')
-rw-r--r--script/platform.lua26
1 files changed, 0 insertions, 26 deletions
diff --git a/script/platform.lua b/script/platform.lua
deleted file mode 100644
index 5384ad3d..00000000
--- a/script/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