fix(nvim): suppress filetype highlight in notify windows
This commit is contained in:
@@ -1,6 +1,12 @@
|
|||||||
return {
|
return {
|
||||||
"rcarriga/nvim-notify",
|
"rcarriga/nvim-notify",
|
||||||
event = "VeryLazy",
|
event = "VeryLazy",
|
||||||
|
opts = {
|
||||||
|
on_open = function(win)
|
||||||
|
local buf = vim.api.nvim_win_get_buf(win)
|
||||||
|
vim.api.nvim_buf_set_option(buf, "filetype", "")
|
||||||
|
end,
|
||||||
|
},
|
||||||
config = function(_, opts)
|
config = function(_, opts)
|
||||||
require("notify").setup(opts)
|
require("notify").setup(opts)
|
||||||
vim.notify = require("notify")
|
vim.notify = require("notify")
|
||||||
|
|||||||
Reference in New Issue
Block a user