From 87f96d8209c368ffd1103c73ada34bf19d7c5f61 Mon Sep 17 00:00:00 2001 From: Oliver Hartmann Date: Tue, 30 May 2023 11:30:32 +0200 Subject: [PATCH] revert back to old diagnostic float window --- lua/plugins/lsp_lines.lua | 14 -------------- lua/plugins/lspconfig.lua | 1 + 2 files changed, 1 insertion(+), 14 deletions(-) delete mode 100644 lua/plugins/lsp_lines.lua diff --git a/lua/plugins/lsp_lines.lua b/lua/plugins/lsp_lines.lua deleted file mode 100644 index be55b1d..0000000 --- a/lua/plugins/lsp_lines.lua +++ /dev/null @@ -1,14 +0,0 @@ -return { - 'https://git.sr.ht/~whynothugo/lsp_lines.nvim', - config = true, - keys = { - { - 'l', - function() - require('lsp_lines').toggle() - end, - desc = 'Toggle lsp_lines', - } - }, - event = 'LspAttach' -} diff --git a/lua/plugins/lspconfig.lua b/lua/plugins/lspconfig.lua index b8ecffe..6e7614e 100644 --- a/lua/plugins/lspconfig.lua +++ b/lua/plugins/lspconfig.lua @@ -123,6 +123,7 @@ return { vim.keymap.set('n', '', 'ClangdSwitchSourceHeader', { noremap = true, silent = false, desc = 'Switch Source/Header', buffer = bufnr }) + vim.cmd([[autocmd CursorHold lua OpenDiagFloat()]]) -- Set some keybinds conditional on server capabilities if client.server_capabilities.documentFormattingProvider then