From e4e25b5b8ad9bdef6889156c84f3e0d07cd85f0e Mon Sep 17 00:00:00 2001 From: juancwu Date: Sun, 12 Apr 2026 18:24:37 +0000 Subject: [PATCH] (nvim) resolve client.suports_method deprecation warning --- nvim/lua/juancwu/plugins/lsp.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nvim/lua/juancwu/plugins/lsp.lua b/nvim/lua/juancwu/plugins/lsp.lua index 7cb4fce..0962225 100644 --- a/nvim/lua/juancwu/plugins/lsp.lua +++ b/nvim/lua/juancwu/plugins/lsp.lua @@ -22,7 +22,7 @@ vim.api.nvim_create_autocmd("LspAttach", { map("]d", vim.diagnostic.goto_next, "Go to next diagnostic") local client = vim.lsp.get_client_by_id(event.data.client_id) - if client and client.supports_method(vim.lsp.protocol.Methods.textDocument_documentHighlight) then + if client and client:supports_method(vim.lsp.protocol.Methods.textDocument_documentHighlight) then local highlight_augroup = vim.api.nvim_create_augroup("kickstart-lsp-highlight", { clear = false }) vim.api.nvim_create_autocmd({ "CursorHold", "CursorHoldI" }, { buffer = event.buf,