diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2020-01-08 09:46:25 -0800 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2020-01-08 22:18:18 -0800 |
commit | 0a1c6d9a374a0c984515d0af43b1c71af6c55eb2 (patch) | |
tree | e45b23927d64722f8ec6816765b7e5ba7df17164 /runtime/lua/vim/lsp/util.lua | |
parent | 8c8681d594a10c7056d62d09267190b6fab37e85 (diff) | |
download | rneovim-0a1c6d9a374a0c984515d0af43b1c71af6c55eb2.tar.gz rneovim-0a1c6d9a374a0c984515d0af43b1c71af6c55eb2.tar.bz2 rneovim-0a1c6d9a374a0c984515d0af43b1c71af6c55eb2.zip |
LSP: highlight groups test, doc
Diffstat (limited to 'runtime/lua/vim/lsp/util.lua')
-rw-r--r-- | runtime/lua/vim/lsp/util.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/runtime/lua/vim/lsp/util.lua b/runtime/lua/vim/lsp/util.lua index 338aedb4e0..df82e2d412 100644 --- a/runtime/lua/vim/lsp/util.lua +++ b/runtime/lua/vim/lsp/util.lua @@ -549,7 +549,9 @@ do local underline_highlight_name = "LspDiagnosticsUnderline" vim.cmd(string.format("highlight default %s gui=underline cterm=underline", underline_highlight_name)) for kind, _ in pairs(protocol.DiagnosticSeverity) do - vim.cmd(string.format("highlight default link %s%s %s", underline_highlight_name, kind, underline_highlight_name)) + if type(kind) == 'string' then + vim.cmd(string.format("highlight default link %s%s %s", underline_highlight_name, kind, underline_highlight_name)) + end end local severity_highlights = {} |