Note: This site is currently "Under construction". I'm migrating to a new version of my site building software. Lots of things are in a state of disrepair as a result (for example, footnote links aren't working). It's all part of the process of building in public. Most things should still be readable though.

Turn Off The Syntax Highlighting Around TODO Strings in Neovim

I use this in my `~/.config/nvim/init.vim` file

Code

hi clear TODO
hi link Todo Comment

It removes the highlight around the word `TODO` 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