From 344de7e7148d4d328b849a6e3e7dd3d1815f42c9 Mon Sep 17 00:00:00 2001 From: Stefan Rakel Date: Thu, 30 Oct 2025 15:45:28 +0100 Subject: [PATCH] Notify about addition and deletion of bookmarks --- lua/bookmark.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lua/bookmark.lua b/lua/bookmark.lua index 13b0f3b..59f4dc3 100644 --- a/lua/bookmark.lua +++ b/lua/bookmark.lua @@ -69,6 +69,7 @@ function M.addBookmark() local file = vim.api.nvim_buf_get_name(0) local cursor = vim.api.nvim_win_get_cursor(0) table.insert(bookmarks, {name = input, file = file, cursor = cursor}) + vim.notify("Bookmark \"" .. input .. "\" added") end end) end @@ -82,9 +83,10 @@ function M.selectBookmark(action, on_choice) end function M.deleteBookmark() - M.selectBookmark("Delete", function(_, idx) + M.selectBookmark("Delete", function(bookmark, idx) if idx then table.remove(bookmarks, idx) + vim.notify("Deleted bookmark \"".. bookmark.name .. "\"") end end) end