chore: update to client:supports_method

This commit is contained in:
2025-10-18 03:31:43 +02:00
parent b3495ef161
commit f34ddbac36
2 changed files with 2 additions and 2 deletions

View File

@@ -59,7 +59,7 @@ MiniDeps.later(function()
) )
local tD_dH = vim.lsp.protocol.Methods.textDocument_documentHighlight 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 ag = vim.api.nvim_create_augroup
local ac = vim.api.nvim_create_autocmd local ac = vim.api.nvim_create_autocmd
local g = ag("custom-lsp-tD_dH-highlight", { clear = false }) local g = ag("custom-lsp-tD_dH-highlight", { clear = false })

View File

@@ -4,7 +4,7 @@ MiniDeps.later(function()
local function disable(args) local function disable(args)
local client = vim.lsp.get_client_by_id(args.data.client_id) local client = vim.lsp.get_client_by_id(args.data.client_id)
local tD_dH = vim.lsp.protocol.Methods.textDocument_documentHighlight 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 vim.b[args.buf].minicursorword_disable = true
end end