From 0c6c7a34c033541d03b05528cabd7c3c499cc579 Mon Sep 17 00:00:00 2001 From: twig Date: Mon, 6 Feb 2023 18:45:57 -0800 Subject: [PATCH] Disabled clangd diagnostic messages as they don't understand the one translation unit build style --- lua/keybindings.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lua/keybindings.lua b/lua/keybindings.lua index 000034d..832f2e3 100644 --- a/lua/keybindings.lua +++ b/lua/keybindings.lua @@ -23,7 +23,8 @@ vim.keymap.set('i', '', '// 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', 'fs', 'Telescope grep_string', opts) -vim.keymap.set('n', 'ss', 'Telescope spell_suggest', opts) +vim.keymap.set('n', 'ss', 'Telescope spell_suggest', opts) +vim.keymap.set('n', 't', 'Telescope', 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{