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 end
vim.diagnostic.config({ vim.diagnostic.config({
underline = {
severity = { max = vim.diagnostic.severity.WARN },
},
virtual_text = {
severity = { min = vim.diagnostic.severity.ERROR },
},
float = { border = "rounded" }, float = { border = "rounded" },
update_in_insert = true, update_in_insert = true,
}) })
@ -107,7 +113,12 @@ return {
}) })
end, end,
dependencies = { dependencies = {
"williamboman/mason.nvim", {
"williamboman/mason.nvim",
opts = {
ui = { border = "rounded" },
},
},
{ "folke/neodev.nvim", config = true }, { "folke/neodev.nvim", config = true },
}, },
}, },
@ -116,15 +127,7 @@ return {
"HallerPatrick/py_lsp.nvim", "HallerPatrick/py_lsp.nvim",
"mfussenegger/nvim-jdtls", "mfussenegger/nvim-jdtls",
"onsails/lspkind.nvim", "onsails/lspkind.nvim",
"ray-x/lsp_signature.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", "jay-babu/mason-null-ls.nvim",
config = { opts = {
ensure_installed = { "stylua" }, ensure_installed = { "stylua" },
}, },
}, },

Loading…
Cancel
Save