aboutsummaryrefslogtreecommitdiff
path: root/lspc.lua
diff options
context:
space:
mode:
authorgit-bruh <prathamIN@proton.me>2024-04-07 01:16:43 +0530
committerFlorian Fischer <florian.fischer@muhq.space>2024-04-11 10:40:08 +0200
commit435559d6ff94ba861c67a486736af5c506348326 (patch)
tree214f4a0760482c9ca2f20998d223052d9c107567 /lspc.lua
parentd36c417bc662a720a0bfdd60cbc8c1dc6c915041 (diff)
downloadvis-lspc-435559d6ff94ba861c67a486736af5c506348326.tar.gz
vis-lspc-435559d6ff94ba861c67a486736af5c506348326.zip
lspc, init: add different diagnostic styles for each type
Diffstat (limited to 'lspc.lua')
-rw-r--r--lspc.lua11
1 files changed, 8 insertions, 3 deletions
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,