nvim: lsp: Do not enable document highlight on CursorHoldI
This commit is contained in:
parent
9251900f70
commit
6744dc6004
1 changed files with 0 additions and 1 deletions
|
@ -146,7 +146,6 @@ local on_attach = function(client, bufnr)
|
|||
|
||||
if client.resolved_capabilities.document_highlight then
|
||||
vim.api.nvim_command [[autocmd CursorHold <buffer> lua vim.lsp.buf.document_highlight()]]
|
||||
vim.api.nvim_command [[autocmd CursorHoldI <buffer> lua vim.lsp.buf.document_highlight()]]
|
||||
vim.api.nvim_command [[autocmd CursorMoved <buffer> lua vim.lsp.buf.clear_references()]]
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue