nvim: lsp: Enable LSP document highlight

This commit is contained in:
Sanchayan Maity 2021-10-19 20:21:29 +05:30
parent e2a4d77590
commit af7461452c

View file

@ -129,6 +129,9 @@ local on_attach = function(client, bufnr)
vim.api.nvim_command [[autocmd CursorHold,CursorHoldI,InsertLeave <buffer> lua vim.lsp.codelens.refresh()]]
end
vim.api.nvim_command [[autocmd CursorHold <buffer> lua vim.lsp.buf.document_highlight()]]
vim.api.nvim_command [[autocmd CursorMoved,InsertEnter <buffer> lua vim.lsp.buf.clear_references()]]
protocol.CompletionItemKind = {
''; -- text
''; -- method