summaryrefslogtreecommitdiff
path: root/fnl
diff options
context:
space:
mode:
authorMike Vink <mike1994vink@gmail.com>2023-05-06 10:54:50 +0200
committerMike Vink <mike1994vink@gmail.com>2023-05-06 10:54:50 +0200
commit6f185ea73d55c9fdac215a19477b30b331fbabfe (patch)
tree15ee116a7c347ee1eab1d2f9f142a646d8979387 /fnl
parent45635cd2525e6d4e140cc408ac8970ace6c6839c (diff)
fixup
Diffstat (limited to 'fnl')
-rw-r--r--fnl/conf/init.fnl6
1 files 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] :<leader>w
(fn []
@@ -71,8 +71,8 @@
(vim.keymap.set [:n] :<leader>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/