Skip to content

Commit e86000b

Browse files
sudo-teedmaspataud
authored andcommitted
fix: highlight group clear on each attach (nvim-lua#874)
1 parent be6284d commit e86000b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ require('lazy').setup({
520520
-- When you move your cursor, the highlights will be cleared (the second autocommand).
521521
local client = vim.lsp.get_client_by_id(event.data.client_id)
522522
if client and client.server_capabilities.documentHighlightProvider then
523-
local highlight_augroup = vim.api.nvim_create_augroup('kickstart-lsp-highlight', { clear = true })
523+
local highlight_augroup = vim.api.nvim_create_augroup('kickstart-lsp-highlight', { clear = false })
524524
vim.api.nvim_create_autocmd({ 'CursorHold', 'CursorHoldI' }, {
525525
buffer = event.buf,
526526
group = highlight_augroup,

0 commit comments

Comments
 (0)