summaryrefslogtreecommitdiff
path: root/dot_config/nvim/fnl/toast/macros.fnl
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--dot_config/nvim/fnl/toast/macros.fnl7
1 files changed, 3 insertions, 4 deletions
diff --git a/dot_config/nvim/fnl/toast/macros.fnl b/dot_config/nvim/fnl/toast/macros.fnl
index bb4375b..b81d8e6 100644
--- a/dot_config/nvim/fnl/toast/macros.fnl
+++ b/dot_config/nvim/fnl/toast/macros.fnl
@@ -2,9 +2,8 @@
(local {: inc
: drop
- : group} (require :toast.core))
-(local {: from-pairs
- : insert} (require :toast.table))
+ : assoc} (require :toast.core))
+(local {: insert} (require :toast.table))
(fn tbl [...]
"Generate a mixed table.
@@ -16,7 +15,7 @@
&until (= v '&)]
(insert out v))
post (drop (inc (length pre)) args)]
- (from-pairs (group 2 post) pre)))
+ (assoc pre (unpack post))))
(fn recc [reqspec key ...]
"A common lua pattern is `require 'something'.call(arg1, arg2)`.