chore: removed lsp source information when only one source is available

This commit is contained in:
Simon Lasbrugnas 2025-02-27 14:57:37 +01:00
parent e4bf9d8318
commit 0ba757ae05
Signed by untrusted user who does not match committer: simon
GPG key ID: 86039876BA6ED8DE

View file

@ -19,7 +19,7 @@ vim.diagnostic.config({
float = { float = {
style = "minimal", style = "minimal",
border = "none", border = "none",
source = "always", source = "if_many",
header = "", header = "",
prefix = "", prefix = "",
}, },
@ -53,8 +53,9 @@ lsp_zero.on_attach(function(_, bufnr)
end) end)
-- Mason configuration -- Mason configuration
local ensure_installed = { "html", "rust_analyzer", "zls", "ts_ls" } local ensure_installed = { "html", "rust_analyzer", "zls" }
require("mason-lspconfig").setup({ require("mason-lspconfig").setup({
automatic_installation = true,
handlers = { handlers = {
lsp_zero.default_setup, lsp_zero.default_setup,
}, },