From f34ddbac3684526d2e2eca2ac05ecf807a98a4c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Jane=C5=BEi=C4=8D?= Date: Sat, 18 Oct 2025 03:31:43 +0200 Subject: [PATCH] chore: update to client:supports_method --- lua/plugins/lsp.lua | 2 +- lua/plugins/mini_cursorword.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/plugins/lsp.lua b/lua/plugins/lsp.lua index 4c92ec7..99207a6 100644 --- a/lua/plugins/lsp.lua +++ b/lua/plugins/lsp.lua @@ -59,7 +59,7 @@ MiniDeps.later(function() ) local tD_dH = vim.lsp.protocol.Methods.textDocument_documentHighlight - if client and client.supports_method(tD_dH) then + if client and client:supports_method(tD_dH) then local ag = vim.api.nvim_create_augroup local ac = vim.api.nvim_create_autocmd local g = ag("custom-lsp-tD_dH-highlight", { clear = false }) diff --git a/lua/plugins/mini_cursorword.lua b/lua/plugins/mini_cursorword.lua index f42a3ab..12b7452 100644 --- a/lua/plugins/mini_cursorword.lua +++ b/lua/plugins/mini_cursorword.lua @@ -4,7 +4,7 @@ MiniDeps.later(function() local function disable(args) local client = vim.lsp.get_client_by_id(args.data.client_id) local tD_dH = vim.lsp.protocol.Methods.textDocument_documentHighlight - if client and not client.supports_method(tD_dH) then return end + if client and not client:supports_method(tD_dH) then return end vim.b[args.buf].minicursorword_disable = true end