Zed extension to highlight TODOs and other keywords in your code.
-
multiple keywords per line (in this case every keyword's patch will be highlighted using keyword's color)

In order to highlight the keywords, you need to allow Zed to draw background colors:
{
"lsp_document_colors": "background"
}TODO is a built-in keyword. You can override the look by customizing extension's settings.
To customize which keywords to highlight and their appearance, you can use local project's .zed/settings.json or global Zed's settings.json as long as the LSP server is enabled and configured:
"lsp": {
"todo-highlight-lsp": {
"initialization_options": {
"highlights": {
"TODO": {
"background": "#81ff81"
},
"FIXME": {
"background": "#ffff81"
},
"BUG": {
"background": "#ff8181"
}
},
},
},
}The color can be a RGB or a RGBA value, so the following is also accepted:
"lsp": {
"todo-highlight-lsp": {
"initialization_options": {
"highlights": {
"TODO": {
"background": "#81ff811b"
}
}
}
}
}- Only background color is supported since it's the only feature supported by the LSP server. To add foreground color requires interaction with the editor and there is no Zed API at the moment.
- Not possible to show the line number of the highlighted keyword since extensions cannot modify the editor's UI.

