This commit is contained in:
jhe 2024-06-13 15:21:04 +02:00
parent bc16c39a59
commit f0d9ed52c0
No known key found for this signature in database
GPG key ID: 10FFC60F6B8DC9B7
3 changed files with 38 additions and 15 deletions

View file

@ -155,11 +155,7 @@ return { -- LSP Configuration & Plugins
-- - settings (table): Override the default settings passed when initializing the server.
-- For example, to see the options for `lua_ls`, you could go to: https://luals.github.io/wiki/settings/
local servers = {
clangd = {
diagnostics = {
enable = false,
},
},
clangd = {},
-- gopls = {},
pyright = {},
-- rust_analyzer = {},
@ -216,5 +212,14 @@ return { -- LSP Configuration & Plugins
end,
},
}
local lspconfig = require 'lspconfig'
-- Disable diagnostics and warnings for clangd
lspconfig.clangd.setup {
handlers = {
['textDocument/publishDiagnostics'] = function() end,
},
}
end,
}