Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
4 tasks done
lobneroO opened this issue Sep 17, 2024 · 2 comments
Open
4 tasks done

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

lobneroO opened this issue Sep 17, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@lobneroO
Copy link

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.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
  1. 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

  },
})
@lobneroO lobneroO added the bug Something isn't working label Sep 17, 2024
@JohnnyAmos
Copy link

JohnnyAmos commented Sep 22, 2024

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants