From 435559d6ff94ba861c67a486736af5c506348326 Mon Sep 17 00:00:00 2001 From: git-bruh Date: Sun, 7 Apr 2024 01:16:43 +0530 Subject: lspc, init: add different diagnostic styles for each type --- lspc.lua | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'lspc.lua') diff --git a/lspc.lua b/lspc.lua index 5bd3c46..8a759bc 100644 --- a/lspc.lua +++ b/lspc.lua @@ -35,9 +35,14 @@ local lspc = { highlight_diagnostics = false, -- style id used by lspc to register the style used to highlight diagnostics diagnostic_style_id = 64, -- 64 is the last style id available for the lexer styles. See vis/ui.h. - -- style used by lspc to highlight the diagnostic range - -- 60% solarized red - diagnostic_style = 'back:#e3514f', + -- styles used by lspc to highlight the diagnostic range + -- must be set by the user + diagnostic_styles = { + error = 'fore:default,back:default', + warning = 'fore:default,back:default', + information = 'fore:default,back:default', + hint = 'fore:default,back:default', + }, -- restore the position of the primary curser after applying a workspace edit workspace_edit_remember_cursor = true, -- cgit v1.2.3