summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancis Belanger <francis.belanger@gmail.com>2024-04-22 15:53:45 -0400
committerGitHub <noreply@github.com>2024-04-22 15:53:45 -0400
commit942b26184c06f7fbeb276f3df0a829f02a752657 (patch)
tree025c98459b672ddc877d3b216011e79e96d53def
parent81f270a704ffe428ffe221122e0b1604567ae6cd (diff)
fix: highlight group clear on each attach (#874)
-rw-r--r--init.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/init.lua b/init.lua
index ccca32c..036eefb 100644
--- a/init.lua
+++ b/init.lua
@@ -514,7 +514,7 @@ require('lazy').setup({
-- When you move your cursor, the highlights will be cleared (the second autocommand).
local client = vim.lsp.get_client_by_id(event.data.client_id)
if client and client.server_capabilities.documentHighlightProvider then
- local highlight_augroup = vim.api.nvim_create_augroup('kickstart-lsp-highlight', { clear = true })
+ local highlight_augroup = vim.api.nvim_create_augroup('kickstart-lsp-highlight', { clear = false })
vim.api.nvim_create_autocmd({ 'CursorHold', 'CursorHoldI' }, {
buffer = event.buf,
group = highlight_augroup,