better LspDiagnostics icons and colors
This commit is contained in:
parent
503dc5b1c8
commit
49c1f84e6e
|
@ -15,7 +15,7 @@ require "compe".setup {
|
||||||
documentation = true,
|
documentation = true,
|
||||||
source = {
|
source = {
|
||||||
path = true,
|
path = true,
|
||||||
buffer = true,
|
buffer = {kind = "" , true},
|
||||||
calc = true,
|
calc = true,
|
||||||
vsnip = {kind = ""}, --replace to what sign you prefer
|
vsnip = {kind = ""}, --replace to what sign you prefer
|
||||||
nvim_lsp = true,
|
nvim_lsp = true,
|
||||||
|
|
|
@ -78,7 +78,23 @@ require "lspconfig".sumneko_lua.setup {
|
||||||
}
|
}
|
||||||
|
|
||||||
-- replace the default lsp diagnostic letters with prettier symbols
|
-- replace the default lsp diagnostic letters with prettier symbols
|
||||||
vim.fn.sign_define("LspDiagnosticsSignError", {text = "", numhl = "LspDiagnosticsDefaultError"})
|
vim.fn.sign_define("LspDiagnosticsSignError", {text = "", numhl = "LspDiagnosticsDefaultError"})
|
||||||
vim.fn.sign_define("LspDiagnosticsSignWarning", {text = "", numhl = "LspDiagnosticsDefaultWarning"})
|
vim.fn.sign_define("LspDiagnosticsSignWarning", {text = "", numhl = "LspDiagnosticsDefaultWarning"})
|
||||||
vim.fn.sign_define("LspDiagnosticsSignInformation", {text = "", numhl = "LspDiagnosticsDefaultInformation"})
|
vim.fn.sign_define("LspDiagnosticsSignInformation", {text = "", numhl = "LspDiagnosticsDefaultInformation"})
|
||||||
vim.fn.sign_define("LspDiagnosticsSignHint", {text = "", numhl = "LspDiagnosticsDefaultHint"})
|
vim.fn.sign_define("LspDiagnosticsSignHint", {text = "", numhl = "LspDiagnosticsDefaultHint"})
|
||||||
|
|
||||||
|
-- diagnostics highlights
|
||||||
|
|
||||||
|
local cmd = vim.cmd
|
||||||
|
|
||||||
|
cmd "hi LspDiagnosticsSignError guifg=#f9929b"
|
||||||
|
cmd "hi LspDiagnosticsVirtualTextError guifg=#BF616A"
|
||||||
|
|
||||||
|
cmd "hi LspDiagnosticsSignWarning guifg=#EBCB8B"
|
||||||
|
cmd "hi LspDiagnosticsVirtualTextWarning guifg=#EBCB8B"
|
||||||
|
|
||||||
|
cmd "hi LspDiagnosticsSignInformation guifg=#A3BE8C"
|
||||||
|
cmd "hi LspDiagnosticsVirtualTextInformation guifg=#A3BE8C"
|
||||||
|
|
||||||
|
cmd "hi LspDiagnosticsSignHint guifg=#b6bdca"
|
||||||
|
cmd "hi LspDiagnosticsVirtualTextHint guifg=#b6bdca"
|
||||||
|
|
Loading…
Reference in New Issue