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
Additional context
I've added the following to my config to address this issue, but I think it'd be worthwhile to just do it upstream in setup.
{ 'NvChad/nvim-colorizer.lua',
config=function()
localc=require'colorizer'c.setup{}
-- nvim-colorizer doesn't work on the initial buffer if we lazy load, so force it to attach-- on load.localbufnr=vim.api.nvim_get_current_buf()
ifbufnrandnotc.is_buffer_attached(bufnr) thenc.attach_to_buffer(bufnr)
endend,
event='VeryLazy',},
The text was updated successfully, but these errors were encountered:
Describe the bug
Plugin does not attach on initial buffer if lazy loaded with Lazy.
To Reproduce
Using Lazy plugin manager, configure your nvim-colorizer like so:
Then, create a sample file:
Open it with Neovim:
You won't see
#111
colorized.Expected behavior
#111
is colorized.Colorizer Version:
dde3084
Additional context
I've added the following to my config to address this issue, but I think it'd be worthwhile to just do it upstream in
setup
.The text was updated successfully, but these errors were encountered: