Home
NOTE: I'm in the middle of upgrading the site. Most things are in place, but some things are missing and/or broken. This includes alt text for images. Please bear with me while I get things fixed.

Turn Off The Syntax Highlighting Around TODO Strings in Neovim

I use this in my [TODO: Code shorthand span ] file

hi clear TODO
hi link Todo Comment

It removes the highlight around the word [TODO: Code shorthand span ] and makes it look like other comments.

The first line removes all syntax highlighting so turns the text to its base color. The second line applies the syntax highlighting of comments to TODOs so it looks the same. Since my TODOs are all in comments, this works great. (Though, there might be a case where I have TODO in a string somewhere, but that'll be fine too)

This came from combining the two answers on this page

~ fin ~