From 4c6dcacfcd5c2cc1271471f1af71a48e7c55c4ea Mon Sep 17 00:00:00 2001 From: Harrison Cramer Date: Fri, 1 Sep 2023 10:00:48 -0400 Subject: [PATCH] Added notification for created comments/notes --- lua/gitlab/actions/comment.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lua/gitlab/actions/comment.lua b/lua/gitlab/actions/comment.lua index 949b9c5..50bc1d6 100644 --- a/lua/gitlab/actions/comment.lua +++ b/lua/gitlab/actions/comment.lua @@ -32,6 +32,7 @@ M.confirm_create_comment = function(text, unlinked) if unlinked then local body = { comment = text } job.run_job("/comment", "POST", body, function(data) + vim.notify("Note created!", vim.log.levels.INFO) discussions.add_discussion({ data = data, unlinked = true }) end) return @@ -72,6 +73,7 @@ M.confirm_create_comment = function(text, unlinked) } job.run_job("/comment", "POST", body, function(data) + vim.notify("Comment created!", vim.log.levels.INFO) discussions.add_discussion({ data = data, unlinked = false }) end) end