diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2024-04-11 10:44:10 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2024-04-11 10:44:10 +0200 |
| commit | 6badd1c874fd72bb7127bf72e4d006a3bd5c18a8 (patch) | |
| tree | 5c10e9ad43163c7395496c64de7e223d1e511cdc | |
| parent | 435559d6ff94ba861c67a486736af5c506348326 (diff) | |
| download | vis-lspc-6badd1c874fd72bb7127bf72e4d006a3bd5c18a8.tar.gz vis-lspc-6badd1c874fd72bb7127bf72e4d006a3bd5c18a8.zip | |
chnage default diagnostic styles and mention them in the README
| -rw-r--r-- | README.md | 10 | ||||
| -rw-r--r-- | lspc.lua | 8 |
2 files changed, 13 insertions, 5 deletions
@@ -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 @@ -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 |
