From 8673fca3a0d3175ecb3d6fd5e59e2d2dee622d91 Mon Sep 17 00:00:00 2001 From: "Kim A. Brandt" Date: Thu, 4 Apr 2024 22:39:17 +0200 Subject: [PATCH] fix: rename `harpoon:list():removeAt` into `harpoon:list():remove_at` --- lua/harpoon/list.lua | 2 +- lua/telescope/_extensions/harpoon_marks/actions.lua | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lua/harpoon/list.lua b/lua/harpoon/list.lua index bf8008ac..b6a5b6f8 100644 --- a/lua/harpoon/list.lua +++ b/lua/harpoon/list.lua @@ -192,7 +192,7 @@ end function HarpoonList:remove_at(index) if self.items[index] then Logger:log( - "HarpoonList:removeAt", + "HarpoonList:remove_at", { item = self.items[index], index = index } ) Extensions.extensions:emit( diff --git a/lua/telescope/_extensions/harpoon_marks/actions.lua b/lua/telescope/_extensions/harpoon_marks/actions.lua index 33ad6ee3..4e96877b 100644 --- a/lua/telescope/_extensions/harpoon_marks/actions.lua +++ b/lua/telescope/_extensions/harpoon_marks/actions.lua @@ -20,14 +20,14 @@ M.delete_mark_selections = function(prompt_bufnr) -- delete marks from multi-selection for i = #selections, 1, -1 do local selection = selections[i] - harpoon:list():removeAt(selection.index) + harpoon:list():remove_at(selection.index) count = count + 1 end else -- delete marks from single-selection local selection = action_state.get_selected_entry() if selection ~= nil then - harpoon:list():removeAt(selection.index) + harpoon:list():remove_at(selection.index) count = count + 1 else return 0