idcl lsp
This commit is contained in:
parent
bc16c39a59
commit
f0d9ed52c0
3 changed files with 38 additions and 15 deletions
|
|
@ -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,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue