From c001da16f567eb8b212694d16dec7efefbcff26d Mon Sep 17 00:00:00 2001 From: tastytea Date: Sun, 14 Aug 2022 00:02:33 +0200 Subject: [PATCH] nvim: disable hover help the cursor gets trapped in the popup all the time --- .config/nvim/lua/my/lsp.lua | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.config/nvim/lua/my/lsp.lua b/.config/nvim/lua/my/lsp.lua index cf90c5e..3e0ad42 100644 --- a/.config/nvim/lua/my/lsp.lua +++ b/.config/nvim/lua/my/lsp.lua @@ -56,14 +56,14 @@ packer.use { }) end - -- show help on hover - if client.resolved_capabilities.hover then - vim.api.nvim_create_autocmd({ 'CursorHold', 'CursorHoldI' }, { - group = 'config_lsp', - buffer = bufnr, - callback = vim.lsp.buf.hover, - }) - end + -- -- show help on hover + -- if client.resolved_capabilities.hover then + -- vim.api.nvim_create_autocmd({ 'CursorHold', 'CursorHoldI' }, { + -- group = 'config_lsp', + -- buffer = bufnr, + -- callback = vim.lsp.buf.hover, + -- }) + -- end end -- update client capabilities with completion plugin stuff