Disabled clangd diagnostic messages as they don't understand the one
translation unit build style
This commit is contained in:
parent
0c0e1b37fa
commit
0c6c7a34c0
|
@ -23,7 +23,8 @@ vim.keymap.set('i', '<A-y>', '// NOTE(twig): ', opts)
|
|||
-- This is horrendous on windows, can't use nvim for almost a minute!
|
||||
vim.keymap.set('n', 'K', '')
|
||||
vim.keymap.set('n', '<leader>fs', '<cmd>Telescope grep_string<cr>', opts)
|
||||
vim.keymap.set('n', '<leader>ss', '<cmd>Telescope spell_suggest', opts)
|
||||
vim.keymap.set('n', '<leader>ss', '<cmd>Telescope spell_suggest<cr>', opts)
|
||||
vim.keymap.set('n', '<leader>t', '<cmd>Telescope<cr>', opts)
|
||||
|
||||
local on_attach = function(client, bufnr)
|
||||
vim.api.nvim_buf_set_option(bufnr, 'omnifunc', 'v:lua.vim.lsp.omnifunc')
|
||||
|
@ -53,6 +54,10 @@ lspconfig.gopls.setup{
|
|||
lspconfig.clangd.setup{
|
||||
on_attach = on_attach,
|
||||
flags = lsp_flags,
|
||||
handlers = {
|
||||
["textDocument/publishDiagnostics"] = function(err, result, ctx, config)
|
||||
end
|
||||
}
|
||||
}
|
||||
-- honestly don't need this, telemetry is a big yikes.
|
||||
lspconfig.sumneko_lua.setup{
|
||||
|
|
Loading…
Reference in New Issue