31 lines
544 B
Lua
31 lines
544 B
Lua
local M = {}
|
|
|
|
M.setup = function()
|
|
local config = {
|
|
virtual_text = true,
|
|
signs = {
|
|
text = {
|
|
[vim.diagnostic.severity.ERROR] = '',
|
|
[vim.diagnostic.severity.WARN] = '',
|
|
[vim.diagnostic.severity.HINT] = '',
|
|
[vim.diagnostic.severity.INFO] = '',
|
|
}
|
|
},
|
|
update_in_insert = true,
|
|
underline = true,
|
|
severity_sort = true,
|
|
float = {
|
|
focusable = true,
|
|
style = "minimal",
|
|
border = "rounded",
|
|
source = "always",
|
|
header = "",
|
|
prefix = "",
|
|
},
|
|
}
|
|
|
|
vim.diagnostic.config(config)
|
|
end
|
|
|
|
return M
|