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

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