From 6cdbd6bb29c8750a63b0256acaa9bd7d8974f504 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Tue, 2 May 2023 21:05:04 +0100 Subject: [PATCH] home: vim: lua: lsp: remove diagnostic on hover --- home/vim/lua/ambroisie/lsp.lua | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/home/vim/lua/ambroisie/lsp.lua b/home/vim/lua/ambroisie/lsp.lua index 260ef8d..8d347d3 100644 --- a/home/vim/lua/ambroisie/lsp.lua +++ b/home/vim/lua/ambroisie/lsp.lua @@ -21,17 +21,6 @@ M.on_attach = function(client, bufnr) severity_sort = true, }) - -- Show diagnostics on "hover" - local augroup = vim.api.nvim_create_augroup("DiagnosticsHover", {}) - vim.api.nvim_clear_autocmds({ group = augroup, buffer = bufnr }) - vim.api.nvim_create_autocmd({"CursorHold", "CursorHoldI"}, { - group = augroup, - buffer = bufnr, - callback = function() - vim.diagnostic.open_float(nil, {focus=false, scope="cursor"}) - end, - }) - -- Format on save lsp_format.on_attach(client, bufnr)