From 2ed005a880f03cb6889bba03b5951579d2cbf4e3 Mon Sep 17 00:00:00 2001 From: Thomas Ruoff Date: Tue, 25 Nov 2025 08:05:40 +0100 Subject: [PATCH] simplify as we are on neovim +11 anyways... --- lua/plugins/lsp.lua | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/lua/plugins/lsp.lua b/lua/plugins/lsp.lua index 448b911..dba9866 100644 --- a/lua/plugins/lsp.lua +++ b/lua/plugins/lsp.lua @@ -102,13 +102,7 @@ return { ---@param method vim.lsp.protocol.Method ---@param bufnr? integer some lsp support methods only in specific files ---@return boolean - local function client_supports_method(client, method, bufnr) - if vim.fn.has 'nvim-0.11' == 1 then - return client:supports_method(method, bufnr) - else - return client.supports_method(method, { bufnr = bufnr }) - end - end + local function client_supports_method(client, method, bufnr) return client:supports_method(method, bufnr) end -- The following two autocommands are used to highlight references of the -- word under your cursor when your cursor rests there for a little while.