summaryrefslogtreecommitdiff
path: root/script/brave
diff options
context:
space:
mode:
authorsumneko <sumneko@hotmail.com>2022-01-22 05:48:53 +0800
committersumneko <sumneko@hotmail.com>2022-01-22 05:48:53 +0800
commit37d33caad5eca02ffa3ac0608ccfe13468bdd22e (patch)
treea481bde0654d8dcbdd8c54c000296e52f7ba29fb /script/brave
parent877306a927b098e25853f38ea792dd5ee663bbfd (diff)
downloadlua-language-server-37d33caad5eca02ffa3ac0608ccfe13468bdd22e.zip
use async loadFile
Diffstat (limited to 'script/brave')
-rw-r--r--script/brave/work.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/script/brave/work.lua b/script/brave/work.lua
index 6307c777..49c90f83 100644
--- a/script/brave/work.lua
+++ b/script/brave/work.lua
@@ -24,3 +24,7 @@ brave.on('timer', function (time)
brave.push('wakeup')
end
end)
+
+brave.on('loadFile', function (path)
+ return util.loadFile(path)
+end)