You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to create a notification that uses hlgroups to highlight various lines of hardcoded text, something like:
require("notify")("Some default text %#Error# these words have the Error hlgroup")
as a quick and dirty way to format different words in a notification ad hoc. My use case is I want to bind a popup that will remind me what some icons in my file explorer mean, and it would be cool if I could color each with their specific hlgroup, or even just match the correct color somehow. The notification text would be hardcoded.
Is this possible? Thanks!
Wouldn't it be cool if these were each colored appropriately!? 💅
The text was updated successfully, but these errors were encountered:
As a hack I can create a scratch buffer that looks like I want and then replace the notify buffer in the on_open, but that destroys the title of the notification. I tried to capture the notification lines by using vim.api.nvim_buf_get_lines on the notification buffer before I replaced it, but that didn't work either.
Is there a way to provide a buffer to use as the notification body? Unfortunately passing just the lines of the buffer (from vim.api.nvim_buf_get_lines) discards any highlighting.
I'd like to create a notification that uses hlgroups to highlight various lines of hardcoded text, something like:
as a quick and dirty way to format different words in a notification ad hoc. My use case is I want to bind a popup that will remind me what some icons in my file explorer mean, and it would be cool if I could color each with their specific hlgroup, or even just match the correct color somehow. The notification text would be hardcoded.
Is this possible? Thanks!
Wouldn't it be cool if these were each colored appropriately!? 💅
The text was updated successfully, but these errors were encountered: