fix(nvim): update a deprecated call

This commit is contained in:
Bruno Carlin 2023-03-09 22:29:01 +01:00
parent 423ab28c21
commit 33f67b7499
Signed by: bcarlin
GPG key ID: 8E254EA0FFEB9B6D

View file

@ -34,7 +34,7 @@ M.attach = function(client, bufnr)
buf_set_keymap('n', '<space>s', '<cmd>lua vim.lsp.buf.document_highlight()<CR>', opts)
buf_set_keymap('n', '<space>ss', '<cmd>lua vim.lsp.buf.clear_references()<CR>', opts)
if client.resolved_capabilities.document_highlight then
if client.server_capabilities.document_highlight then
vim.cmd [[
hi LspReferenceRead cterm=bold ctermbg=red guibg=LightYellow
hi LspReferenceText cterm=bold ctermbg=red guibg=LightYellow