(nvim) resolve lsp client supported method deprecation warning
This commit is contained in:
parent
914a235885
commit
f0db0ada98
1 changed files with 1 additions and 1 deletions
|
|
@ -60,7 +60,7 @@ return {
|
|||
--
|
||||
-- When you move your cursor, the highlights will be cleared (the second autocommand).
|
||||
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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue