馃 a tiny, customizable statusline for neovim
1local M = {}
2
3local lzrq = function(modname)
4 return vim.defaulttable(function(k)
5 return require(modname)[k]
6 end)
7end
8
9local config = lzrq("lylla.config")
10
11---@param cfg? lylla.config
12function M.setup(cfg)
13 cfg = cfg or {}
14 config.set(config.override(cfg))
15end
16
17-- helpers
18
19---@param fn fun(): string|any[]
20---@param opts? { events: string[] }
21---@return table
22function M.component(fn, opts)
23 local t = {}
24 t.fn = fn
25 t.opts = opts
26 return t
27end
28
29return M