The words Under construction in black text on a yellow background with diagonal black stipes surrounding it
I'm in the process of moving my site. It's still a work in progress. Please excuse the mess and broken links.

Turn Off The Syntax Highlighting Around TODO Strings in Neovim

TODO: Pull subtitle into page object

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

code_start_default_section code_end_default_section

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

Debugging Stuff

I'm moving stuff around right now. All this below is helping me figure out where to put stuff

        -- title

Turn Off The Syntax Highlighting Around TODO Strings in Neovim

-- p

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

-- code/

hi clear TODO
hi link Todo Comment

-- /code

-- p

It removes the highlight around the word `TODO` and makes it look like other comments.

-- p

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)

-- p

This came from combining the two answers on <<link|this page|https://vi.stackexchange.com/q/14996/15011>>


-- categories
-- Neovim

-- metadata
-- date: 2022-03-07 17:40:32
-- id: 264phzao
-- status: published
-- type: post
-- SCRUBBED_NEO: false
-- site: aws