!refactor: Lua 模块引用方式变更 (#1094)

- 删除了 `rime.lua`
- 在方案中引用时添加 `*` 前缀
This commit is contained in:
wrvsrx
2024-12-06 00:11:43 +08:00
committed by GitHub
parent ed191350b2
commit aa505b7b2d
28 changed files with 219 additions and 260 deletions

9
lua/force_gc.lua Normal file
View File

@@ -0,0 +1,9 @@
-- 暴力 GC
-- 详情 https://github.com/hchunhui/librime-lua/issues/307
-- 这样也不会导致卡顿,那就每次都调用一下吧,内存稳稳的
local function force_gc()
-- collectgarbage()
collectgarbage("step")
end
return force_gc