Skip to content

Commit 0613b56

Browse files
sudo-teehchienjo
authored andcommitted
fix: highlight group clear on each attach (nvim-lua#874)
1 parent a808da0 commit 0613b56

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

0 commit comments

Comments
 (0)