Open Lun4m opened 1 week ago
Ok, my bad, apparently it was indeed related to treesitter, installing the toml
parser fixed it.
I guess this is expected behavior since todo-comments
gets the comment context from treesitter (by default comments_only = true
), right?
Did you check docs and existing issues?
Neovim version (nvim -v)
0.10.0
Operating system/version
Ubuntu 22.04.1
Describe the bug
Probably related to #189, and I'm pretty sure the comment parser is not installed.
In a lua file:
In a toml file:
Of all the file types I commonly use only
toml
seems to have this problem. So maybe it's a treesitter issue?Steps To Reproduce
echo $'-- TODO: todo\n-- FIXME: fixme\n-- NOTE: note' > test.lua
echo $'# TODO: todo\n# FIXME: fixme\n# NOTE: note' > test.toml
nvim -u repro.lua test.lua
→ comments are greyed out for some reason:e test.toml
→ comments are colored, but the background of TODO and FIXME is highlighted.If in step 3. you open
test.toml
instead, comments are greyed out and the background of TODO and FIXME is highlighted.Expected Behavior
Keywords shouldn't have background highlighting.
Repro