diff options
| author | 2024-07-24 19:19:26 +0200 | |
|---|---|---|
| committer | 2024-07-24 19:19:26 +0200 | |
| commit | 01586921b3d5f2ac1ccf8196d3ad9b4b3ddd31f3 (patch) | |
| tree | d740ac5e8943e48ee4132efc4633051d6cdf1d48 /dot_config/nvim/lua/toast/table.lua | |
| parent | nvim: ignore lazy-lock.json (diff) | |
nvim: rewrite config in fennel
One file isn't done, and there's also the question of ftplugin and co.
One step at a time though, eh?
Diffstat (limited to '')
| -rw-r--r-- | dot_config/nvim/lua/toast/table.lua | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/dot_config/nvim/lua/toast/table.lua b/dot_config/nvim/lua/toast/table.lua new file mode 100644 index 0000000..b2633a2 --- /dev/null +++ b/dot_config/nvim/lua/toast/table.lua @@ -0,0 +1,16 @@ +-- [nfnl] Compiled from fnl/toast/table.fnl by https://github.com/Olical/nfnl, do not edit. +local function from_pairs(t, _3fmut) + local out = (_3fmut or {}) + for _, _1_ in ipairs(t) do + local _each_2_ = _1_ + local k = _each_2_[1] + local v = _each_2_[2] + out[k] = v + end + return out +end +local function insert(t, ...) + table.insert(t, ...) + return t +end +return {["from-pairs"] = from_pairs, insert = insert} |
