Files
dotfiles/.config/nvim/lua/user/plugins/lsp/diagnostics_config.lua

31 lines
546 B
Lua

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