Closed niksingh710 closed 7 months ago
You can use the API to get the notifications to show anyway that you like :smile:
local notify = require("notify")
local lines = {}
for _, notif in ipairs(notify.history()) do
table.insert(
lines,
("%s %s: %s"):format(notif.title[1], notif.title[2], table.concat(notif.message, "\n"))
)
end
local buf = vim.api.nvim_create_buf(false, true)
vim.api.nvim_set_option_value("bufhidden", "wipe", { buf = buf })
vim.api.nvim_buf_set_lines(buf, 0, -1, false, lines)
vim.cmd("vsplit")
vim.api.nvim_win_set_buf(0, buf)
I won't be adding this to nvim-notify as there are too many possible configurations and it's easy for people to implement as they want
is it possible to open a specific notification from history to a split window it will make them checking error logs much easier.