nvim: lsp: Enable LSP document highlight
This commit is contained in:
parent
e2a4d77590
commit
af7461452c
1 changed files with 3 additions and 0 deletions
|
@ -129,6 +129,9 @@ local on_attach = function(client, bufnr)
|
||||||
vim.api.nvim_command [[autocmd CursorHold,CursorHoldI,InsertLeave <buffer> lua vim.lsp.codelens.refresh()]]
|
vim.api.nvim_command [[autocmd CursorHold,CursorHoldI,InsertLeave <buffer> lua vim.lsp.codelens.refresh()]]
|
||||||
end
|
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 = {
|
protocol.CompletionItemKind = {
|
||||||
' '; -- text
|
' '; -- text
|
||||||
' '; -- method
|
' '; -- method
|
||||||
|
|
Loading…
Reference in a new issue