folke / todo-comments.nvim

✅ Highlight, list and search todo comments in your projects
Apache License 2.0
3.26k stars 92 forks source link

bug: Multiline colouring does not start at beginning of new line #317

Closed lobneroO closed 2 weeks ago

lobneroO commented 2 months ago

Did you check docs and existing issues?

Neovim version (nvim -v)

v0.10.1

Operating system/version

Windows 11

Describe the bug

The multiline TODO comment colours the comment, but in every line it starts at the same character (i.e. not in the beginning of a new line). This is a problem, if the TODO: string is not the first string of a comment:

image

Steps To Reproduce

  1. Write a comment
    // some text TODO: we need a lot more text
    // but there is another line with a lot of text
    // and even more text in a third line here
  2. Note that the TODO colouring starts with the TODO and on the same char index in every following line

Expected Behavior

Either the entire TODO line (and multiline comment) or at least the entire comment + full following lines are coloured

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
    -- no special setup

  },
})
JohnnyAmos commented 1 month ago

I have the same problem on MacOS Sequoia. I haven't submitted an issue because I was going to see if I could fix it and submit a PR, but I haven't had time. I'll try to work on it later tonight.

JohnnyAmos commented 1 month ago

Well, that didn't happen. Sometime this week, maybe?

github-actions[bot] commented 3 weeks ago

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] commented 2 weeks ago

This issue was closed because it has been stalled for 7 days with no activity.