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
1 changed files with 3 additions and 0 deletions

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