nvim: lsp: Do not enable document highlight on CursorHoldI

This commit is contained in:
Sanchayan Maity 2022-01-04 12:50:05 +05:30
parent 9251900f70
commit 6744dc6004

View file

@ -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