diff --git a/nvim/.config/nvim/lua/lsp/common.lua b/nvim/.config/nvim/lua/lsp/common.lua index aa616c9..76618d5 100644 --- a/nvim/.config/nvim/lua/lsp/common.lua +++ b/nvim/.config/nvim/lua/lsp/common.lua @@ -34,7 +34,7 @@ M.attach = function(client, bufnr) buf_set_keymap('n', 's', 'lua vim.lsp.buf.document_highlight()', opts) buf_set_keymap('n', 'ss', 'lua vim.lsp.buf.clear_references()', 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