Skip to content

Commit

Permalink
fix(lsp): clear lsp reference highlighting when leaving the buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
mehalter committed Aug 15, 2023
1 parent 1910b86 commit 14c25bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/astronvim/utils/lsp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ M.on_attach = function(client, bufnr)
end,
},
{
events = { "CursorMoved", "CursorMovedI" },
events = { "CursorMoved", "CursorMovedI", "BufLeave" },
desc = "clear references when cursor moves",
callback = function() vim.lsp.buf.clear_references() end,
},
Expand Down

0 comments on commit 14c25bc

Please sign in to comment.