Migrated comment.go to new approach (three API calls)

This commit is contained in:
Harrison Cramer
2023-04-25 20:27:30 -04:00
parent c2f1eb2b5b
commit 9eb8d08f14
3 changed files with 89 additions and 107 deletions

View File

@@ -153,15 +153,17 @@ local function darken_metadata(bufnr, regex)
end
local function print_success(_, line)
if line ~= nil and line ~= "" then
notify(line, "info")
end
print(line)
-- if line ~= nil and line ~= "" then
-- notify(line, "info")
-- end
end
local function print_error(_, line)
if line ~= nil and line ~= "" then
notify(line, "error")
end
print(line)
-- if line ~= nil and line ~= "" then
-- notify(line, "error")
-- end
end
local function exit(popup)