diff options
author | Ghjuvan Lacambre <code@lacamb.re> | 2020-04-29 16:53:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-29 16:53:13 +0200 |
commit | f9055c585f597fe4ea8ecb990927a2826234393c (patch) | |
tree | 12842c0e5f796ef886641f47352abc827b7e3dad /runtime/lua/vim/lsp.lua | |
parent | e9cc383614d449b7269632c991525db77c387154 (diff) | |
download | rneovim-f9055c585f597fe4ea8ecb990927a2826234393c.tar.gz rneovim-f9055c585f597fe4ea8ecb990927a2826234393c.tar.bz2 rneovim-f9055c585f597fe4ea8ecb990927a2826234393c.zip |
LSP: enable using different highlighting rules for LSP signs (#12176)
This commit creates 4 new highlight groups:
- LspDiagnosticsErrorSign
- LspDiagnosticsWarningSign
- LspDiagnosticsInformationSign
- LspDiagnosticsHintSign
These highlight groups are linked to their corresponding LspDiagnostics
highlight groups by default.
This lets users choose a different color for their sign columns and
virtualtext diagnostics.
Diffstat (limited to 'runtime/lua/vim/lsp.lua')
-rw-r--r-- | runtime/lua/vim/lsp.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/runtime/lua/vim/lsp.lua b/runtime/lua/vim/lsp.lua index c01b5d8e0c..4c1c52c796 100644 --- a/runtime/lua/vim/lsp.lua +++ b/runtime/lua/vim/lsp.lua @@ -1024,10 +1024,10 @@ do vim.fn.sign_define(name, properties) end end - define_default_sign('LspDiagnosticsErrorSign', {text='E', texthl='LspDiagnosticsError', linehl='', numhl=''}) - define_default_sign('LspDiagnosticsWarningSign', {text='W', texthl='LspDiagnosticsWarning', linehl='', numhl=''}) - define_default_sign('LspDiagnosticsInformationSign', {text='I', texthl='LspDiagnosticsInformation', linehl='', numhl=''}) - define_default_sign('LspDiagnosticsHintSign', {text='H', texthl='LspDiagnosticsHint', linehl='', numhl=''}) + define_default_sign('LspDiagnosticsErrorSign', {text='E', texthl='LspDiagnosticsErrorSign', linehl='', numhl=''}) + define_default_sign('LspDiagnosticsWarningSign', {text='W', texthl='LspDiagnosticsWarningSign', linehl='', numhl=''}) + define_default_sign('LspDiagnosticsInformationSign', {text='I', texthl='LspDiagnosticsInformationSign', linehl='', numhl=''}) + define_default_sign('LspDiagnosticsHintSign', {text='H', texthl='LspDiagnosticsHintSign', linehl='', numhl=''}) end return lsp |