diff options
author | Francis Belanger <francis.belanger@gmail.com> | 2024-04-22 15:53:45 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-22 15:53:45 -0400 |
commit | 942b26184c06f7fbeb276f3df0a829f02a752657 (patch) | |
tree | 025c98459b672ddc877d3b216011e79e96d53def | |
parent | 81f270a704ffe428ffe221122e0b1604567ae6cd (diff) |
fix: highlight group clear on each attach (#874)
-rw-r--r-- | init.lua | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -514,7 +514,7 @@ require('lazy').setup({ -- When you move your cursor, the highlights will be cleared (the second autocommand). local client = vim.lsp.get_client_by_id(event.data.client_id) if client and client.server_capabilities.documentHighlightProvider then - local highlight_augroup = vim.api.nvim_create_augroup('kickstart-lsp-highlight', { clear = true }) + local highlight_augroup = vim.api.nvim_create_augroup('kickstart-lsp-highlight', { clear = false }) vim.api.nvim_create_autocmd({ 'CursorHold', 'CursorHoldI' }, { buffer = event.buf, group = highlight_augroup, |