no diagnostics for clangd lol
This commit is contained in:
parent
1ce1b1ee02
commit
bc16c39a59
4 changed files with 15 additions and 20 deletions
18
init.lua
18
init.lua
|
|
@ -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,
|
||||
},
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue