Removed notify as a dependency (#11)
Fixes: https://www.reddit.com/r/neovim/comments/14irqwt/comment/jphw2cx/?utm_source=share&utm_medium=web2x&context=3
This commit is contained in:
committed by
GitHub
parent
4069b95b3d
commit
23a21b867b
@@ -1,7 +1,6 @@
|
||||
local u = require("gitlab.utils")
|
||||
local NuiTree = require("nui.tree")
|
||||
local job = require("gitlab.job")
|
||||
local notify = require("notify")
|
||||
local state = require("gitlab.state")
|
||||
local Job = require("plenary.job")
|
||||
local Popup = require("nui.popup")
|
||||
@@ -29,7 +28,7 @@ M.send_reply = function(text)
|
||||
state.tree:render()
|
||||
local buf = vim.api.nvim_get_current_buf()
|
||||
u.darken_metadata(buf, '')
|
||||
notify("Sent reply!")
|
||||
vim.notify("Sent reply!", vim.log.levels.INFO)
|
||||
end)
|
||||
end)
|
||||
end
|
||||
@@ -45,7 +44,7 @@ M.list_discussions = function()
|
||||
if data_ok and data ~= nil then
|
||||
local status = (data.status >= 200 and data.status < 300) and "success" or "error"
|
||||
if status == "error" then
|
||||
notify("Could not fetch discussions!", "error")
|
||||
vim.notify("Could not fetch discussions!", vim.log.levels.ERROR)
|
||||
return
|
||||
end
|
||||
M.discussions = data.discussions
|
||||
@@ -88,7 +87,7 @@ M.list_discussions = function()
|
||||
end
|
||||
end,
|
||||
on_stderr = function(_, output)
|
||||
notify("Could not run approve command!", "error")
|
||||
vim.notify("Could not run approve command!", vim.log.levels.ERROR)
|
||||
error(output)
|
||||
end,
|
||||
}):start()
|
||||
|
||||
Reference in New Issue
Block a user