File tree 1 file changed +2
-2
lines changed 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -564,7 +564,7 @@ require('lazy').setup({
564
564
--
565
565
-- When you move your cursor, the highlights will be cleared (the second autocommand).
566
566
local client = vim .lsp .get_client_by_id (event .data .client_id )
567
- if client and client . supports_method (vim .lsp .protocol .Methods .textDocument_documentHighlight ) then
567
+ if client and client : supports_method (vim .lsp .protocol .Methods .textDocument_documentHighlight ) then
568
568
local highlight_augroup = vim .api .nvim_create_augroup (' kickstart-lsp-highlight' , { clear = false })
569
569
vim .api .nvim_create_autocmd ({ ' CursorHold' , ' CursorHoldI' }, {
570
570
buffer = event .buf ,
@@ -591,7 +591,7 @@ require('lazy').setup({
591
591
-- code, if the language server you are using supports them
592
592
--
593
593
-- This may be unwanted, since they displace some of your code
594
- if client and client . supports_method (vim .lsp .protocol .Methods .textDocument_inlayHint ) then
594
+ if client and client : supports_method (vim .lsp .protocol .Methods .textDocument_inlayHint ) then
595
595
map (' <leader>th' , function ()
596
596
vim .lsp .inlay_hint .enable (not vim .lsp .inlay_hint .is_enabled { bufnr = event .buf })
597
597
end , ' [T]oggle Inlay [H]ints' )
You can’t perform that action at this time.
0 commit comments