Skip to content

Commit 526c281

Browse files
sudo-teemonk3yd
authored andcommitted
fix: highlight group clear on each attach (nvim-lua#874)
1 parent b70e867 commit 526c281

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
@@ -586,7 +586,7 @@ require('lazy').setup({
586586
-- When you move your cursor, the highlights will be cleared (the second autocommand).
587587
local client = vim.lsp.get_client_by_id(event.data.client_id)
588588
if client and client.server_capabilities.documentHighlightProvider then
589-
local highlight_augroup = vim.api.nvim_create_augroup('kickstart-lsp-highlight', { clear = true })
589+
local highlight_augroup = vim.api.nvim_create_augroup('kickstart-lsp-highlight', { clear = false })
590590
vim.api.nvim_create_autocmd({ 'CursorHold', 'CursorHoldI' }, {
591591
buffer = event.buf,
592592
group = highlight_augroup,

0 commit comments

Comments
 (0)