rcarriga / nvim-notify

A fancy, configurable, notification manager for NeoVim
MIT License
2.97k stars 78 forks source link

[Question] highlight text when render is minimal #168

Closed jyfzh closed 1 year ago

jyfzh commented 1 year ago
require("notify").setup({
            stages = "fade",
            timeout = 1000,
            top_down = true,
            max_width = 32,
                        animation = false
        })
vim.api.nvim_set_hl(0, "NotifyINFOIcon", { fg = "gray" })
require("notify")({"some text"},"info",{render = "minimal"}

when render is minimal, text highlight is NotifyINFOIcon, is it correct? i think make it be NotifyINFOBody or NotifyINFOTitle is better


result highlight NotifyINFOIcon:

image
rcarriga commented 1 year ago

The icon and title highlight are the same by default so icon makes as much as sense as title. Body is the same across all levels so wouldn't work.

Easiest solution is to define the icon highlights how you'd like them. Alternatively check out the compact view

jyfzh commented 1 year ago

got it,thanks