From f417d8b81999d1e3dcaf1d91a3c5b9e617b540ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moritz=20B=C3=B6hme?= Date: Mon, 13 May 2024 10:33:17 +0200 Subject: [PATCH] fix: new nvim problems --- modules/programs/nvim/plugins/lua/nvim-lspconfig.lua | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/modules/programs/nvim/plugins/lua/nvim-lspconfig.lua b/modules/programs/nvim/plugins/lua/nvim-lspconfig.lua index 2df09a8..d618a7f 100644 --- a/modules/programs/nvim/plugins/lua/nvim-lspconfig.lua +++ b/modules/programs/nvim/plugins/lua/nvim-lspconfig.lua @@ -23,12 +23,7 @@ local lspconfig = require("lspconfig") local on_attach_def = function(client, bufnr) require("which-key").register({ K = { - function() - local winid = require("ufo").peekFoldedLinesUnderCursor() - if not winid then - vim.lsp.buf.hover() - end - end, + vim.lsp.buf.hover, "Hover", }, [""] = { @@ -102,7 +97,7 @@ local on_attach_def = function(client, bufnr) } local timeout = vim.tbl_contains(slow_lsp_servers, client.name, {}) and 500 or 0 vim.defer_fn(function() - vim.lsp.inlay_hint.enable(bufnr, true) + vim.lsp.inlay_hint.enable(true, { bufnr }) end, timeout) end end