Closed tris203 closed 2 hours ago
0.11 dev
Ubuntu 22.04
Title doesnt seem to be passed through the message object in a cond filter of a route
cond
vim.notify("hello", vim.log.levels.info, { title = "test" }) vim.notify("hello", vim.log.levels.info)
if the message has a title it should go to mini view, if not it should fall through and be displayed normally.
vim.env.LAZY_STDPATH = ".repro" load(vim.fn.system("curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua"))() require("lazy.minit").repro({ spec = { { "folke/noice.nvim", opts = { routes = { { filter = { event = "notify", kind = "info", cond = function(message) if message.title then return true else return false end end, }, view = "mini", }, }, }, }, -- add any other plugins here }, })
message.opts.title
Did you check docs and existing issues?
Neovim version (nvim -v)
0.11 dev
Operating system/version
Ubuntu 22.04
Describe the bug
Title doesnt seem to be passed through the message object in a
cond
filter of a routeSteps To Reproduce
Expected Behavior
if the message has a title it should go to mini view, if not it should fall through and be displayed normally.
Repro