aboutsummaryrefslogtreecommitdiff
path: root/lua/config
diff options
context:
space:
mode:
Diffstat (limited to 'lua/config')
-rw-r--r--lua/config/lsp.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/lua/config/lsp.lua b/lua/config/lsp.lua
index 585ec9a..fa16f97 100644
--- a/lua/config/lsp.lua
+++ b/lua/config/lsp.lua
@@ -50,9 +50,9 @@ local custom_attach = function(client, bufnr)
-- The blow command will highlight the current variable and its usages in the buffer.
if client.resolved_capabilities.document_highlight then
vim.cmd([[
- hi link LspReferenceRead Visual
- hi link LspReferenceText Visual
- hi link LspReferenceWrite Visual
+ hi! link LspReferenceRead Visual
+ hi! link LspReferenceText Visual
+ hi! link LspReferenceWrite Visual
augroup lsp_document_highlight
autocmd! * <buffer>
autocmd CursorHold <buffer> lua vim.lsp.buf.document_highlight()