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 = "‹❮❰ " }
|
virtual_text = {prefix = "‹❮❰ " }
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
vim.fn.sign_define(
|
local signs = { Error = "🔥", Warn = "⚠️ ", Hint = "💡", Info = "💡" }
|
||||||
"LspDiagnosticsSignError",
|
for type, icon in pairs(signs) do
|
||||||
{
|
local hl = "DiagnosticSign" .. type
|
||||||
text = "🔥",
|
vim.fn.sign_define(hl, { text = icon, texthl = hl, numhl = hl })
|
||||||
texthl = "LspDiagnosticsSignError"
|
end
|
||||||
}
|
|
||||||
)
|
|
||||||
|
|
||||||
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 on_attach = function()
|
local on_attach = function()
|
||||||
require("folding").on_attach()
|
require("folding").on_attach()
|
||||||
|
|
Loading…
Reference in a new issue