From b16c25401cc7b07e29dec42960286cce2e3c5df8 Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Sat, 10 Feb 2024 18:17:26 +0100 Subject: Update harpoon api --- fnl/plugins/harpoon.fnl | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'fnl') 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] -- cgit v1.2.3-70-g09d2