Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] highlight text when render is minimal #168

Closed
jyfzh opened this issue Jan 23, 2023 · 2 comments
Closed

[Question] highlight text when render is minimal #168

jyfzh opened this issue Jan 23, 2023 · 2 comments

Comments

@jyfzh
Copy link

jyfzh commented Jan 23, 2023

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
Copy link
Owner

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
Copy link
Author

jyfzh commented Jan 26, 2023

got it,thanks

@jyfzh jyfzh closed this as completed Jan 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants