diff options
| author | aktersnurra <gustaf@gustafrydholm.xyz> | 2026-04-16 15:10:52 +0200 |
|---|---|---|
| committer | aktersnurra <gustaf@gustafrydholm.xyz> | 2026-04-17 00:02:28 +0200 |
| commit | 99a7ff44cdf70d028ef6aab26224f26f69ee528d (patch) | |
| tree | 3bac13281fe000f0cc9a1823b6ccac856b0acf88 /fnl/plugins/harpoon.fnl | |
| parent | 83a7f3505a441f1c152229d50a3d6011951a82fc (diff) | |
Diffstat (limited to 'fnl/plugins/harpoon.fnl')
| -rw-r--r-- | fnl/plugins/harpoon.fnl | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/fnl/plugins/harpoon.fnl b/fnl/plugins/harpoon.fnl index 3f8f7ac..29f41d0 100644 --- a/fnl/plugins/harpoon.fnl +++ b/fnl/plugins/harpoon.fnl @@ -1,28 +1,28 @@ ;; Harpoon files for navigation. +(import-macros {: user-cmds} :macros) + (local opts {:ui_max_width 64 :title " ⇁ " :settings {:save_on_toggle true :sync_on_ui_close true}}) -(local user-cmds [[:HarpoonAdd - (λ [] - (let [harpoon (require :harpoon)] - (: (harpoon:list) :add))) - {:nargs 0}] - [:HarpoonUI - (λ [] - (let [harpoon (require :harpoon)] - (harpoon.ui:toggle_quick_menu (harpoon:list) opts))) - {:nargs 0}]]) - (λ select [nr] (let [harpoon (require :harpoon)] (: (harpoon:list) :select nr))) (λ init [] - (let [{: create-user-cmds} (require :util.cmds)] - (create-user-cmds user-cmds))) + (user-cmds + [:HarpoonAdd + (λ [] + (let [harpoon (require :harpoon)] + (: (harpoon:list) :add))) + {:nargs 0}] + [:HarpoonUI + (λ [] + (let [harpoon (require :harpoon)] + (harpoon.ui:toggle_quick_menu (harpoon:list) opts))) + {:nargs 0}])) (local keys [{1 :ma 2 :<cmd>HarpoonAdd<cr> :desc :Harpoon} {1 :mr 2 :<cmd>HarpoonUI<cr> :desc "Harpoon UI"} |