todo-comments.nvim
todo-comments.nvim copied to clipboard
This Plugin Breaks the Neovim Start Screen
When opening Neovim without arguments and without this plugin, I can see the start screen. With this plugin, I see it only for a millisecond and then it disappears. I can conclude that this plugin is causing the Neovim start screen to not show. I do not know why though.
Same here
Same here
Same. Please fix it.
Feel free to submit a PR. I don't use the Neovim start screen, so won't spend the time to look into this. Todo-comments doesn't do anything weird, no idea what's causing this
I looked into this and concluded that it's caused by config.colors()
function being called from a deferred function (setup()
), more precisely these 3 lines:
vim.cmd("hi def TodoBg" .. kw .. " guibg=" .. hex .. " guifg=" .. fg .. " gui=" .. bg_gui)
vim.cmd("hi def TodoFg" .. kw .. " guibg=NONE guifg=" .. hex .. " gui=" .. fg_gui)
vim.cmd("hi def TodoSign" .. kw .. " guibg=" .. sign_bg .. " guifg=" .. hex .. " gui=NONE")
:highlight
command triggers redrawing, which causes the start screen to disappear. I managed to fix this behaviour by adding event='VimEnter'
to my packer setup. It looks like this:
use {
'folke/todo-comments.nvim',
requires = 'nvim-lua/plenary.nvim',
event = 'VimEnter',
config = function()
require('todo-comments').setup()
end
}
Remember to run :PackerCompile
if you change your configuration.
@MPWrobel's solution works for me
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.
This issue was closed because it has been stalled for 7 days with no activity.