summaryrefslogtreecommitdiff
path: root/server/main.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2018-12-07 17:11:26 +0800
committer最萌小汐 <sumneko@hotmail.com>2018-12-07 17:11:26 +0800
commitf3260ceb043848c26dd7ef45d0a5210ea6d4a5ba (patch)
tree90a0faf0de315b175154f23ba3287c9ea86aaf95 /server/main.lua
parent2b03350caa83e66d6bb4cd73be3809ac9cea2225 (diff)
downloadlua-language-server-f3260ceb043848c26dd7ef45d0a5210ea6d4a5ba.zip
hover支持变量对象
Diffstat (limited to 'server/main.lua')
-rw-r--r--server/main.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/server/main.lua b/server/main.lua
index 3ea02e6b..84106c26 100644
--- a/server/main.lua
+++ b/server/main.lua
@@ -1,5 +1,8 @@
local fs = require 'bee.filesystem'
+
ROOT = fs.current_path()
+LANG = LANG or 'en-US'
+
package.path = (ROOT / 'src' / '?.lua'):string()
.. ';' .. (ROOT / 'src' / '?' / 'init.lua'):string()