todo-comments.nvim icon indicating copy to clipboard operation
todo-comments.nvim copied to clipboard

bug: selected todo in quickfix list has bad highlight

Open sghng opened this issue 5 months ago • 5 comments

Did you check docs and existing issues?

  • [x] I have read all the todo-comments.nvim docs
  • [x] I have updated the plugin to the latest version before submitting this issue
  • [x] I have searched the existing issues of todo-comments.nvim
  • [x] I have searched the existing issues of plugins related to this issue

Neovim version (nvim -v)

NVIM v0.12.0-dev-1224+gf1a8bb45ca-Homebrew

Operating system/version

macOS Tahoe

Describe the bug

When a todo item is selected in quickfix list, the bg highlight is taken over by the selection, making some text unreadable.

Image

Steps To Reproduce

  1. TodoQuickfix
  2. Navigate the qf list, and select items, observe the highlights

Expected Behavior

The selected line should have a more consistent highlight. For example, when a line is selected, the keyword should be re-highlighted like the comment body.

However, this may not be possible at all, since once the QF list is populated, perhaps there's no way to know which line is selected and re-highlight it?

Repro

vim.env.LAZY_STDPATH = ".repro"
load(vim.fn.system("curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua"))()

require("lazy.minit").repro({
  spec = {
    { "folke/todo-comments.nvim", opts = {} },
    -- add any other plugins here
  },
})

sghng avatar Sep 26 '25 15:09 sghng

Supersedes #354

sghng avatar Sep 26 '25 15:09 sghng

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.

github-actions[bot] avatar Oct 27 '25 02:10 github-actions[bot]

Still valid

merwok avatar Oct 27 '25 14:10 merwok

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.

github-actions[bot] avatar Nov 27 '25 02:11 github-actions[bot]

still relevant

sghng avatar Nov 27 '25 05:11 sghng