Skip to content

Commit 3582280

Browse files
committed
fix: remove deprecated methods
1 parent b2af42a commit 3582280

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

init.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,7 @@ require('lazy').setup({
566566
--
567567
-- When you move your cursor, the highlights will be cleared (the second autocommand).
568568
local client = vim.lsp.get_client_by_id(event.data.client_id)
569-
if client and client:supports_method(vim.lsp.protocol.Methods.textDocument_documentHighlight, event.buf) then
569+
if client and client:supports_method('textDocument/documentHighlight', event.buf) then
570570
local highlight_augroup = vim.api.nvim_create_augroup('kickstart-lsp-highlight', { clear = false })
571571
vim.api.nvim_create_autocmd({ 'CursorHold', 'CursorHoldI' }, {
572572
buffer = event.buf,
@@ -593,7 +593,7 @@ require('lazy').setup({
593593
-- code, if the language server you are using supports them
594594
--
595595
-- This may be unwanted, since they displace some of your code
596-
if client and client:supports_method(vim.lsp.protocol.Methods.textDocument_inlayHint, event.buf) then
596+
if client and client:supports_method('textDocument/inlayHint', event.buf) then
597597
map('<leader>th', function()
598598
vim.lsp.inlay_hint.enable(not vim.lsp.inlay_hint.is_enabled { bufnr = event.buf })
599599
end, '[T]oggle Inlay [H]ints')

0 commit comments

Comments
 (0)