nvim: fix updated diagnostic sign names
This commit is contained in:
parent
566a126f61
commit
f053d78928
1 changed files with 5 additions and 29 deletions
|
@ -10,35 +10,11 @@ vim.lsp.diagnostic.on_publish_diagnostics,
|
|||
virtual_text = {prefix = "‹❮❰ " }
|
||||
}
|
||||
)
|
||||
vim.fn.sign_define(
|
||||
"LspDiagnosticsSignError",
|
||||
{
|
||||
text = "🔥",
|
||||
texthl = "LspDiagnosticsSignError"
|
||||
}
|
||||
)
|
||||
|
||||
vim.fn.sign_define(
|
||||
"LspDiagnosticsSignWarning",
|
||||
{
|
||||
text = "⚠",
|
||||
texthl = "LspDiagnosticsSignWarning"
|
||||
}
|
||||
)
|
||||
vim.fn.sign_define(
|
||||
"LspDiagnosticsSignInformation",
|
||||
{
|
||||
text = "💡",
|
||||
texthl = "LspDiagnosticsSignInformation",
|
||||
}
|
||||
)
|
||||
vim.fn.sign_define(
|
||||
"LspDiagnosticsSignHint",
|
||||
{
|
||||
text = "💡",
|
||||
texthl = "LspDiagnosticsSignHint",
|
||||
}
|
||||
)
|
||||
local signs = { Error = "🔥", Warn = "⚠️ ", Hint = "💡", Info = "💡" }
|
||||
for type, icon in pairs(signs) do
|
||||
local hl = "DiagnosticSign" .. type
|
||||
vim.fn.sign_define(hl, { text = icon, texthl = hl, numhl = hl })
|
||||
end
|
||||
|
||||
local on_attach = function()
|
||||
require("folding").on_attach()
|
||||
|
|
Loading…
Reference in a new issue