From c3ec2cbda1a472c5ad49d0a651994c78d74c9d9f Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Tue, 8 Feb 2022 23:43:49 +0100 Subject: vim: fix builtin diagnostics --- .vim/lua/lsp.lua | 18 ------------------ 1 file changed, 18 deletions(-) (limited to '.vim/lua/lsp.lua') diff --git a/.vim/lua/lsp.lua b/.vim/lua/lsp.lua index eb31b94..d9958b0 100644 --- a/.vim/lua/lsp.lua +++ b/.vim/lua/lsp.lua @@ -92,17 +92,6 @@ local setup = function() -- spinner_lsp.init_capabilities(caps) -- handler overwrites - -- configure builtin diagnositics - vim.lsp.handlers['textDocument/publishDiagnostics'] = vim.lsp.with( -- {{{ - vim.lsp.diagnostic.on_publish_diagnostics, { - virtual_text = false, - signs = true, - underline = true, - update_in_insert = false, - } - ) - -- }}} - -- overwrite codeAction handler to not ask for confirmation if only a single -- action is given vim.lsp.handlers['textDocument/codeAction'] = function(_, _, actions) -- {{{ @@ -147,13 +136,6 @@ local setup = function() end -- }}} - vim.fn.sign_define({ - {name='LspDiagnosticsSignError', text='⚡', numhl='Error'}, - {name='LspDiagnosticsSignWarning', text='⯈', numhl='Warning'}, - {name='LspDiagnosticsSignInformation', text='ℹ'}, - {name='LspDiagnosticsSignHint', text='🞶'} - }) - lsp.ccls.setup { on_attach = my_attach, on_exit = my_exit, -- cgit 1.4.1