vim-nerdtree-syntax-highlight icon indicating copy to clipboard operation
vim-nerdtree-syntax-highlight copied to clipboard

Can't get this to work :(

Open benlieb opened this issue 5 years ago • 1 comments
trafficstars

Trying to get this to work in Vim, Nvim or Macvim. They all look like this:

image

Also tried the recommended syntax clear NERDTreeFlags to no avail.

....

Update, it appears it IS working, it just doesn't recognize certain file types. Also, I had to add

let g:NERDTreeFileExtensionHighlightFullName = 1
let g:NERDTreeExactMatchHighlightFullName = 1
let g:NERDTreePatternMatchHighlightFullName = 1

Even though the docs say this should only be necessary if not use devicons which I am...

benlieb avatar Nov 24 '20 20:11 benlieb

I just updated all the plugins I am using, and it seem to be working with the latest version of them, but maybe some plugin that you have is changing something. So try commenting all the plugins but NERDTree, vim-devicons and this one and see if it works. If it doesn't, post the plugins you are using as text pasted from your .vimrc

Also add this to your .vimrc

map <F12> :echo "hi<" . synIDattr(synID(line("."),col("."),1),"name") . '> trans<'
\ . synIDattr(synID(line("."),col("."),0),"name") . "> lo<"
\ . synIDattr(synIDtrans(synID(line("."),col("."),1)),"name") . ">"<CR>

with this you should be able to put the cursor on top of an icon inside NERDTree (like the little ruby on Gemfile) and it will show which syntax it's using, and send that to me. That helps me debug what is going on. Keep in mind that close to the icon, the cursor might get a little weird, and it might look like you are on top of the icon but you might not be, so try moving around next to the icon pressing F12 to see if you get some different result and post here.

syntax clear NERDTreeFlags should not be used with the latest version.

tiagofumo avatar Nov 26 '20 03:11 tiagofumo