diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2024-02-10 18:17:26 +0100 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2024-02-10 18:17:26 +0100 |
commit | b16c25401cc7b07e29dec42960286cce2e3c5df8 (patch) | |
tree | 1f26a3d87bc6ad7c2342b5777361d648ba536032 /fnl | |
parent | 3f6fc55fc18632ebd8fce814869654f4475195f4 (diff) |
Update harpoon api
Diffstat (limited to 'fnl')
-rw-r--r-- | fnl/plugins/harpoon.fnl | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/fnl/plugins/harpoon.fnl b/fnl/plugins/harpoon.fnl index cdc611e..10727a2 100644 --- a/fnl/plugins/harpoon.fnl +++ b/fnl/plugins/harpoon.fnl @@ -2,23 +2,23 @@ (local user-cmds [[:HarpoonAdd (lambda [] - (let [harpoon (require :harpoon.mark)] - (harpoon.add_file))) + (let [harpoon (require :harpoon)] + (: (harpoon:list) :append))) {:nargs 0}] [:HarpoonNext (lambda [] - (let [harpoon (require :harpoon.ui)] - (harpoon.nav_next))) + (let [harpoon (require :harpoon)] + (: (harpoon:list) :next))) {:nargs 0}] [:HarpoonPrev (lambda [] - (let [harpoon (require :harpoon.ui)] - (harpoon.nav_prev))) + (let [harpoon (require :harpoon)] + (: (harpoon:list) :prev))) {:nargs 0}] [:HarpoonUI (lambda [] - (let [harpoon (require :harpoon.ui)] - (harpoon.toggle_quick_menu))) + (let [harpoon (require :harpoon)] + (harpoon.ui:toggle_quick_menu (harpoon:list)))) {:nargs 0}]]) (fn telescope-ext [ext fun opts] |