File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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' )
You can’t perform that action at this time.
0 commit comments