refactor(nvim): disable virtual text for warnings

chezmoi
sgoudham 2 years ago
parent 8292443f16
commit 3b5debb58c
Signed by: hammy
GPG Key ID: 44E818FD5457EEA4

@ -7,6 +7,12 @@ for type, icon in pairs(signs) do
end
vim.diagnostic.config({
underline = {
severity = { max = vim.diagnostic.severity.WARN },
},
virtual_text = {
severity = { min = vim.diagnostic.severity.ERROR },
},
float = { border = "rounded" },
update_in_insert = true,
})
@ -107,7 +113,12 @@ return {
})
end,
dependencies = {
{
"williamboman/mason.nvim",
opts = {
ui = { border = "rounded" },
},
},
{ "folke/neodev.nvim", config = true },
},
},
@ -117,14 +128,6 @@ return {
"mfussenegger/nvim-jdtls",
"onsails/lspkind.nvim",
"ray-x/lsp_signature.nvim" ,
{
"lukas-reineke/lsp-format.nvim",
config = {
java = {
exclude = { "jdtls" },
},
},
},
},
},
{
@ -151,7 +154,7 @@ return {
},
{
"jay-babu/mason-null-ls.nvim",
config = {
opts = {
ensure_installed = { "stylua" },
},
},

Loading…
Cancel
Save