Is it possible to somehow highlight the entirety of each virtual line or for this to be added in? I find myself trying to go to insert text in the virtual lines.
I think this kind of work?
diff --git a/lua/lsp_lines/render.lua b/lua/lsp_lines/render.lua index 6b12d0d..c43414d 100644 --- a/lua/lsp_lines/render.lua +++ b/lua/lsp_lines/render.lua @@ -127,7 +127,7 @@ function M.show(namespace, bufnr, diagnostics, opts, source) local data = lelements[j][2] if type == SPACE then if multi == 0 then - table.insert(left, { data, "" }) + table.insert(left, { data, highlight_groups[diagnostic.severity] }) else table.insert(left, { string.rep("─", data:len()), highlight_groups[diagnostic.severity] }) end @@ -180,9 +181,9 @@ function M.show(namespace, bufnr, diagnostics, opts, source) -- Special-case for continuation lines: if overlap then - center = { { "│", highlight_groups[diagnostic.severity] }, { " ", "" } } + center = { { "│", highlight_groups[diagnostic.severity] }, { " ", highlight_groups[diagnostic.severity] } } else - center = { { " ", "" } } + center = { { " ", highlight_groups[diagnostic.severity] } } end end endIt does make visually distinguishing empty lines from diagnostic lines a bit easier, so it might be worth adding as a config setting.
Woah Thank you for the quick response! This is exactly what i was looking, cheers! I agree I think it might be worth adding.