Skip to content

Commit f565b20

Browse files
sudo-teedarren-omori
authored andcommitted
fix: highlight group clear on each attach (nvim-lua#874)
1 parent 9beda0e commit f565b20

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

0 commit comments

Comments
 (0)