illuminate.vim - (Neo)Vim plugin for automatically highlighting other uses of the word under the cursor using either LSP, Tree-sitter, or regex matching.
2.14k
stars
47
forks
source link
Make sure buffer is loaded before handling results #98
Loading and unloading a buffer before documentHighlight results are returned causes vim.lsp.util.buf_clear_references to throw an error. This PR adds an additional check to make sure the buffer is loaded before attempting to handle results.
Loading and unloading a buffer before
documentHighlight
results are returned causesvim.lsp.util.buf_clear_references
to throw an error. This PR adds an additional check to make sure the buffer is loaded before attempting to handle results.