Skip to content

Commit eb987ae

Browse files
authored
fix: highlight group clear on each attach (nvim-lua#874)
1 parent 8c0798d commit eb987ae

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
@@ -514,7 +514,7 @@ require('lazy').setup({
514514
-- When you move your cursor, the highlights will be cleared (the second autocommand).
515515
local client = vim.lsp.get_client_by_id(event.data.client_id)
516516
if client and client.server_capabilities.documentHighlightProvider then
517-
local highlight_augroup = vim.api.nvim_create_augroup('kickstart-lsp-highlight', { clear = true })
517+
local highlight_augroup = vim.api.nvim_create_augroup('kickstart-lsp-highlight', { clear = false })
518518
vim.api.nvim_create_autocmd({ 'CursorHold', 'CursorHoldI' }, {
519519
buffer = event.buf,
520520
group = highlight_augroup,

0 commit comments

Comments
 (0)