Added notification for created comments/notes

This commit is contained in:
Harrison Cramer
2023-09-01 10:00:48 -04:00
parent 0a91b890c3
commit 4c6dcacfcd

View File

@@ -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