RRethy / vim-illuminate

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.16k stars 47 forks source link

Add option for disabling per-buffer #50

Closed subnut closed 3 years ago

subnut commented 3 years ago

If b:Illuminate_disabled = 1 is set, vim-illuminate shall not illuminate that buffer

RRethy commented 3 years ago

Apologies, this functionality exists but hasn't been documented. You can disable at a buffer level by using a ! after the commend like :IlluminationDisable! (it works for all three commands). This wraps the buffer variable b:illuminate_enabled. I'll try to add this to docs this weekend.