no diagnostics for clangd lol

This commit is contained in:
jhe 2024-06-12 14:26:06 +02:00
parent 1ce1b1ee02
commit bc16c39a59
No known key found for this signature in database
GPG key ID: 10FFC60F6B8DC9B7
4 changed files with 15 additions and 20 deletions

View file

@ -132,15 +132,6 @@ vim.opt.rtp:prepend(lazypath)
require('lazy').setup({
{ import = 'plugins' },
-- Here are some example plugins that I've included in the Kickstart repository.
-- Uncomment any of the lines below to enable them (you will need to restart nvim).
-- require 'kickstart.plugins.debug',
-- require 'kickstart.plugins.indent_line',
-- require 'kickstart.plugins.lint',
-- require 'kickstart.plugins.autopairs',
-- require 'kickstart.plugins.neo-tree',
-- require 'kickstart.plugins.gitsigns', -- adds gitsigns recommend keymaps
}, {
ui = {
-- If you are using a Nerd Font: set icons to an empty table which will use the
@ -162,3 +153,12 @@ require('lazy').setup({
},
},
})
local lspconfig = require 'lspconfig'
-- Disable diagnostics and warnings for clangd
lspconfig.clangd.setup {
handlers = {
['textDocument/publishDiagnostics'] = function() end,
},
}