21 lines
454 B
Lua
21 lines
454 B
Lua
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 = "" })
|
|
end
|
|
|
|
vim.diagnostic.config({
|
|
virtual_text = { spacing = 2, prefix = "●" },
|
|
signs = true,
|
|
underline = true,
|
|
update_in_insert = false,
|
|
severity_sort = true,
|
|
float = { border = "rounded", source = "if_many" },
|
|
})
|