Skip to content

Commit f6b5737

Browse files
sudo-teeJohn Longanecker
authored andcommitted
fix: highlight group clear on each attach (nvim-lua#874)
1 parent 3637da1 commit f6b5737

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

0 commit comments

Comments
 (0)