diff options
| author | Mike Vink <mike1994vink@gmail.com> | 2023-05-06 10:54:50 +0200 |
|---|---|---|
| committer | Mike Vink <mike1994vink@gmail.com> | 2023-05-06 10:54:50 +0200 |
| commit | 6f185ea73d55c9fdac215a19477b30b331fbabfe (patch) | |
| tree | 15ee116a7c347ee1eab1d2f9f142a646d8979387 /fnl/conf/init.fnl | |
| parent | 45635cd2525e6d4e140cc408ac8970ace6c6839c (diff) | |
fixup
Diffstat (limited to 'fnl/conf/init.fnl')
| -rw-r--r-- | fnl/conf/init.fnl | 6 |
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/ |
