aboutsummaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
authorDamjan 9000 <damjan.9000@gmail.com>2024-04-22 23:48:46 +0200
committerDamjan 9000 <damjan.9000@gmail.com>2024-04-22 23:48:46 +0200
commit77dbcfaaf729664f77df93733b27f5518c9f67ae (patch)
tree7620952d33921eeae03360a173bb46ccbdb13c9d /lua
parentb939e2f5a1e956a972f8af8bd73ff66a19d700f3 (diff)
parent8df3deb6fe7d8adf6957bc649b171f0ffde7f1ad (diff)
Merge 'upstream' fix: highlight group clear on each attach, README
Diffstat (limited to 'lua')
-rw-r--r--lua/kickstart/plugins/lspconfig.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/kickstart/plugins/lspconfig.lua b/lua/kickstart/plugins/lspconfig.lua
index 49be0b4..6d87d0f 100644
--- a/lua/kickstart/plugins/lspconfig.lua
+++ b/lua/kickstart/plugins/lspconfig.lua
@@ -105,7 +105,7 @@ return {
-- 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,