From 467a4f9b1dd595285e678d3474b2924f2312ca34 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Thu, 14 Mar 2024 00:50:56 -0500 Subject: [PATCH] refactor(nvim): do not set default notify ft to `markdown` --- dots/.config/nvim/lua/plugins/configs/noice.lua | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/dots/.config/nvim/lua/plugins/configs/noice.lua b/dots/.config/nvim/lua/plugins/configs/noice.lua index 64ca81a6..685720ad 100644 --- a/dots/.config/nvim/lua/plugins/configs/noice.lua +++ b/dots/.config/nvim/lua/plugins/configs/noice.lua @@ -78,18 +78,6 @@ return { local opts = { stages = "slide", 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, _) local left_icon = notif.icon .. " " local max_message_width = math.max(math.max(unpack(vim.tbl_map(function(line)