highlight same things on CursorHold
This commit is contained in:
@@ -147,6 +147,12 @@ local on_attach = function(client, bufnr)
|
|||||||
client.resolved_capabilities.document_range_formatting = false
|
client.resolved_capabilities.document_range_formatting = false
|
||||||
end
|
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({
|
require("lsp_signature").on_attach({
|
||||||
bind = true,
|
bind = true,
|
||||||
hint_enable = false,
|
hint_enable = false,
|
||||||
|
|||||||
Reference in New Issue
Block a user