Skip to content

Commit

Permalink
fix(lsp): correctly clear location cache
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed May 31, 2024
1 parent 4eaaf9c commit 7ea94a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/trouble/sources/lsp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function M.setup()
local buf = ev.buf
Cache.symbols[buf] = nil
if vim.api.nvim_buf_is_valid(ev.buf) and vim.api.nvim_buf_is_loaded(ev.buf) and vim.bo[ev.buf].buftype == "" then
Cache.locations[buf] = nil
Cache.locations:clear()
end
end,
})
Expand Down

0 comments on commit 7ea94a6

Please sign in to comment.