begin astal rewrite in lua; implement workspace widget in statusbar

This commit is contained in:
gnat
2024-10-12 00:46:39 -07:00
parent 9e70891175
commit 9d44a0ef14
42 changed files with 161 additions and 2848 deletions

23
lua/lib/init.lua Normal file
View File

@ -0,0 +1,23 @@
local M = {}
function M.map(tbl, f)
local t = {}
for k,v in pairs(tbl) do
t[k] = f(v)
end
return t
end
function M.sequence(start, stop)
local t = {}
for i=start,stop do
table.insert(t, i)
end
return t
end
function ternary(cond, t, f)
if cond then return t else return f end
end
return M