aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md10
-rw-r--r--lspc.lua8
2 files changed, 13 insertions, 5 deletions
diff --git a/README.md b/README.md
index 105bd41..42f6643 100644
--- a/README.md
+++ b/README.md
@@ -136,8 +136,16 @@ Available options are:
* `confirm_cmd = 'vis-menu'` - program to prompt for user confirmation
* `ls_map` - a table mapping `vis` syntax names to language server configurations
* `highlight_diagnostics = 'line'` - highlight the `range` or `line`number of available diagnostics
-* `diagnostic_style = 'back:#e3514f'` - style used to highlight diagnostics
* `workspace_edit_remember_cursor = true` - restore the primary cursor position after a workspaceEdit
+* ```
+diagnostic_styles = {
+ error = 'back:red',
+ warning = 'back:yellow',
+ information = 'back:yellow',
+ hint = 'back:yellow',
+}
+```lua
+ styles used to highlight different diagnostics
#### Configure your own Language Server
diff --git a/lspc.lua b/lspc.lua
index 8a759bc..7d1bdfa 100644
--- a/lspc.lua
+++ b/lspc.lua
@@ -38,10 +38,10 @@ local lspc = {
-- 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',
+ error = 'back:red',
+ warning = 'back:yellow',
+ information = 'back:yellow',
+ hint = 'back:yellow',
},
-- restore the position of the primary curser after applying a workspace edit