Skip to content

bug: LocList, QuickFixList and Snacks picker aren't finding TODOs #371

@dandyrow

Description

@dandyrow

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)

v0.11.3

Operating system/version

Arch Linux

Describe the bug

When I have a buffer containing TODO comments and I trigger the LocList or QuickFixList commands or try to use the snacks picker to find them I get a warning saying no todo_comments found.

Steps To Reproduce

  1. Open a file
  2. Create a Todo comment
  3. See it highlights correctly
  4. Try to run one of the commands to list all Todos
  5. No todo comments are found

Expected Behavior

The Todo comments which are present to be found and displayed

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