Skip to content

bug: selected todo in quickfix list has bad highlight #375

@sghng

Description

@sghng

Did you check docs and existing issues?

  • I have read all the todo-comments.nvim docs
  • I have updated the plugin to the latest version before submitting this issue
  • I have searched the existing issues of todo-comments.nvim
  • 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
  },
})

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions