summaryrefslogtreecommitdiff
path: root/fnl/plugins/harpoon.fnl
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2024-07-29 00:03:58 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2024-07-29 00:03:58 +0200
commit7096adce11b93787170c09b79a6170d97b4a977c (patch)
tree1ccb3901136fc31728652e4db9595c1d7b1cccf5 /fnl/plugins/harpoon.fnl
parentbeb3ed1effdc5dbd047c583598b83615075363b7 (diff)
Replace fn with λ and how cmds are imported
Diffstat (limited to 'fnl/plugins/harpoon.fnl')
-rw-r--r--fnl/plugins/harpoon.fnl20
1 files changed, 12 insertions, 8 deletions
diff --git a/fnl/plugins/harpoon.fnl b/fnl/plugins/harpoon.fnl
index c942183..723a52b 100644
--- a/fnl/plugins/harpoon.fnl
+++ b/fnl/plugins/harpoon.fnl
@@ -17,27 +17,31 @@
(let [harpoon (require :harpoon)]
(: (harpoon:list) :select nr)))
-(fn init []
- (let [cmds (require :util.cmds)]
- (cmds.create-user-cmds user-cmds)))
+(λ init []
+ (let [{: create-user-cmds} (require :util.cmds)]
+ (create-user-cmds user-cmds)))
(local keys [{1 :ma 2 :<cmd>HarpoonAdd<cr> :desc :Harpoon}
{1 :mr 2 :<cmd>HarpoonUI<cr> :desc "Harpoon UI"}
{1 :ms
- 2 (fn []
+ 2 (λ []
(select 1))
:desc "First Harpoon"}
{1 :mt
- 2 (fn []
+ 2 (λ []
(select 2))
:desc "Second Harpoon"}
{1 :mn
- 2 (fn []
+ 2 (λ []
(select 3))
:desc "Third Harpoon"}
{1 :me
- 2 (fn []
+ 2 (λ []
(select 4))
:desc "Fourth Harpoon"}])
-{1 :ThePrimeagen/harpoon :branch :harpoon2 :event [:BufReadPost :BufNewFile] : init : keys}
+{1 :ThePrimeagen/harpoon
+ :branch :harpoon2
+ :event [:BufReadPost :BufNewFile]
+ : init
+ : keys}