refactor(nvim): do not set default notify ft to markdown

This commit is contained in:
Price Hiller 2024-03-14 00:50:56 -05:00
parent 6165c01128
commit 467a4f9b1d
Signed by: Price
GPG Key ID: C3FADDE7A8534BEB

View File

@ -78,18 +78,6 @@ return {
local opts = { local opts = {
stages = "slide", stages = "slide",
fps = 60, fps = 60,
on_open = function(win)
local buf = vim.api.nvim_win_get_buf(win)
local ft = vim.bo[buf].filetype
if ft == "" or ft == "notify" then
vim.api.nvim_set_option_value(
"filetype",
"markdown",
{ buf = vim.api.nvim_win_get_buf(win) }
)
vim.api.nvim_set_option_value("wrap", true, { win = win })
end
end,
render = function(bufnr, notif, highlights, _) render = function(bufnr, notif, highlights, _)
local left_icon = notif.icon .. " " local left_icon = notif.icon .. " "
local max_message_width = math.max(math.max(unpack(vim.tbl_map(function(line) local max_message_width = math.max(math.max(unpack(vim.tbl_map(function(line)