highlight same things on CursorHold

This commit is contained in:
2022-02-17 22:38:04 +03:00
parent 1d5562ec70
commit 38aa85ae78

View File

@@ -147,6 +147,12 @@ local on_attach = function(client, bufnr)
client.resolved_capabilities.document_range_formatting = false
end
vim.cmd([[
autocmd CursorHold <buffer> lua vim.lsp.buf.document_highlight()
autocmd CursorHoldI <buffer> lua vim.lsp.buf.document_highlight()
autocmd CursorMoved <buffer> lua vim.lsp.buf.clear_references()
]])
require("lsp_signature").on_attach({
bind = true,
hint_enable = false,