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.19k stars 50 forks source link

[Question]: Blacklist/disable vim-illuminate in nvim-tree #104

Closed willdavidow closed 2 years ago

willdavidow commented 2 years ago

Describe the bug I'll start by saying this is not a bug; just a question.

I'm trying to disable vim-illuminate in nvim-tree but can't seem to get it to stop highlighting things there.

To Reproduce

  1. Open nvim-tree
  2. Move cursor down to any repeated character in the tree
  3. Observe that multiple instances of that character are highlighted

Expected behavior No items are highlighted in the nvim-tree buffer

Screenshots Not-highlighted when cursor is over space character(s) image

Move cursor over > character and all instances are highlighted image

I've tried a bunch of items in the blacklist, but nothing seems to be taking hold - I'm sure that I'm doing something incorrectly, either in setting up the blacklist, or just not using the correct terms in it.. image

RRethy commented 2 years ago

What is the output of :set ft?

willdavidow commented 2 years ago

What is the output of :set ft?

filetype=NvimTree - i'll try this in the igore list...

willdavidow commented 2 years ago

Setting

vim.g.Illuminate_ftblacklist = {'NvimTree'}

fixed it, thanks!

cj commented 2 years ago

@willdavidow @RRethy I have that set, but it is still highlighting it:

image
RRethy commented 2 years ago

What is the output of nvim -v or vim -v (which ever you are using)? You may want to look at https://github.com/RRethy/vim-illuminate/issues/111.

cj commented 2 years ago

@RRethy I switch to v2 and it works now using the new config :)

cj commented 2 years ago

Thank you!