dotfiles from arch

This commit is contained in:
2025-09-28 11:39:12 +02:00
parent 75885729cd
commit d1c6923bbb
1358 changed files with 575835 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
local files = require 'files'
local global = require 'vm.global'
local variable = require 'vm.variable'
---@async
files.watch(function (ev, uri)
if ev == 'update' then
global.dropUri(uri)
end
if ev == 'remove' then
global.dropUri(uri)
end
if ev == 'compile' then
local state = files.getLastState(uri)
if state then
global.compileAst(state.ast)
variable.compileAst(state.ast)
end
end
end)