diff options
Diffstat (limited to 'script-beta/main.lua')
-rw-r--r-- | script-beta/main.lua | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/script-beta/main.lua b/script-beta/main.lua new file mode 100644 index 00000000..c674cab6 --- /dev/null +++ b/script-beta/main.lua @@ -0,0 +1,19 @@ +local currentPath = debug.getinfo(1, 'S').source:sub(2) +local rootPath = currentPath:gsub('[/\\]*[^/\\]-$', '') +dofile(rootPath .. '/platform.lua') +local fs = require 'bee.filesystem' +ROOT = fs.path(rootPath) +LANG = LANG or 'en-US' + +collectgarbage('generational', 10, 50) + +log = require 'log' +log.init(ROOT, ROOT / 'log' / 'service.log') +log.info('Lua Lsp startup, root: ', ROOT) +log.debug('ROOT:', ROOT:string()) + +--loadfile(rootPath .. '/debugger.lua')'wait' +dofile(rootPath .. '/debugger.lua') + +local service = require 'service' +service.start() |