From 01586921b3d5f2ac1ccf8196d3ad9b4b3ddd31f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Chlo=C3=A9=20Vulquin?= Date: Wed, 24 Jul 2024 19:19:26 +0200 Subject: 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? --- dot_config/nvim/lua/toast/table.lua | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 dot_config/nvim/lua/toast/table.lua (limited to 'dot_config/nvim/lua/toast/table.lua') 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} -- cgit v1.2.3