Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't get this to work :( #42

Open
benlieb opened this issue Nov 24, 2020 · 1 comment
Open

Can't get this to work :( #42

benlieb opened this issue Nov 24, 2020 · 1 comment

Comments

@benlieb
Copy link

benlieb commented Nov 24, 2020

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...

@tiagofumo
Copy link
Owner

tiagofumo commented Nov 26, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants