diff options
author | pommicket <pommicket@gmail.com> | 2023-03-03 18:01:34 -0500 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2023-03-03 18:01:34 -0500 |
commit | fb342182983ffdb0aae0497f5cbcb71b0b291023 (patch) | |
tree | 31fdc46c095fb7fe2d8f8f0d21f1d3a310fc1afc /ide-highlights.c | |
parent | fb342637d3b2553daf4659967f35e8e26bd26eb1 (diff) |
different read/write colors for ide-highlights
Diffstat (limited to 'ide-highlights.c')
-rw-r--r-- | ide-highlights.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ide-highlights.c b/ide-highlights.c index fee01d4..4188f4e 100644 --- a/ide-highlights.c +++ b/ide-highlights.c @@ -66,7 +66,10 @@ void highlights_frame(Ted *ted) { } arr_foreach_ptr(hls->highlights, LSPHighlight, hl) { - buffer_highlight_lsp_range(buffer, hl->range); + ColorSetting color = COLOR_HOVER_HL; + if (hl->kind == LSP_HIGHLIGHT_WRITE) + color = COLOR_HL_WRITE; + buffer_highlight_lsp_range(buffer, hl->range, color); } gl_geometry_draw(); } |