From 6f185ea73d55c9fdac215a19477b30b331fbabfe Mon Sep 17 00:00:00 2001 From: Mike Vink Date: Sat, 6 May 2023 10:54:50 +0200 Subject: fixup --- fnl/conf/init.fnl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fnl/conf/init.fnl b/fnl/conf/init.fnl index c80a6b6..f64ebf5 100644 --- a/fnl/conf/init.fnl +++ b/fnl/conf/init.fnl @@ -58,7 +58,7 @@ (= "" item) (iter rest [] (append result by)) (iter rest (append by item) result))) - (iter lines [] [])) + (ipairs (iter lines [] []))) (vim.keymap.set [:n] :w (fn [] @@ -71,8 +71,8 @@ (vim.keymap.set [:n] :W ":Worktree ") (fn list-worktrees [] (local pworktree (io.popen "git worktree list --porcelain")) - (icollect [_ worktree (ipairs (by-newline (icollect [line (pworktree:lines)] - line)))] + (icollect [_ worktree (by-newline (icollect [line (pworktree:lines)] + line))] (match (icollect [_ line (ipairs worktree)] (vim.split line " ")) [[:worktree path] [:HEAD commit] [:branch branch]] (branch:gsub :refs/heads/ -- cgit v1.2.3