Code Monkey home page Code Monkey logo

Comments (13)

ryanoasis avatar ryanoasis commented on May 5, 2024 1

I had a few hunches and I think I have a fix for this but not really 100% sure why it fixes it

Changing this:

autocmd FileType nerdtree syntax match hideBracketsInNerdTree "\]" contained conceal cchar=  containedin=ALL

to:

autocmd FileType nerdtree syntax match hideBracketsInNerdTree "\]" contained conceal containedin=ALL

seems to solve the issue. From what I understand though not explicitly setting the cchar sets it to a space by default

from vim-devicons.

ryanoasis avatar ryanoasis commented on May 5, 2024

I've seen something like this going on in #52 as well.

Can you try to see if setting the follows has any effect on the color:

let g:webdevicons_conceal_nerdtree_brackets = 0

It might be helpful to debug that specific column: http://vim.wikia.com/wiki/Identify_the_syntax_highlighting_group_used_at_the_cursor

If you can send or show your vimrc I can also try to replicate

Thanks

from vim-devicons.

stuartmemo avatar stuartmemo commented on May 5, 2024

So the brackets thing removed the colour and I ended up with this.
screen shot 2015-05-21 at 13 12 30

Before doing that I used that link you gave me, the cursor says...
hi<hideBracketsInNerdTree> trans<hideBracketsInNerdTree> lo<hideBracketsInNerdTree>
That mean anything to you?

My vimrc is here.

Thanks for helping!

from vim-devicons.

ryanoasis avatar ryanoasis commented on May 5, 2024

No problem. There is definitely something going on here. I guess for now that is a workaround but I feel like this is very much solvable (either by me or someone else).

The output doesn't mean too much to me yet but definitely seems to have to do with the custom bracket hide syntax.

Thanks for the vimrc link, I will see what I can do to replicate and hopefully fix.

from vim-devicons.

ryanoasis avatar ryanoasis commented on May 5, 2024

@stuartmemo can you tell me if it is the same regardless of vim or gvim ? And which are the screenshots from?

Sorry but also can you tell me the exact font you are using?

I tested with your vimrc even after installing the same plugins. I tested with Droid Sans patched and Droid Sans (true Mono) patched and could not replicate 😞

selection_02_06_15_18 48 57_1018x742_001

from vim-devicons.

ryanoasis avatar ryanoasis commented on May 5, 2024

@stuartmemo My bad! I just got this issue. I was only doing PluginInstall instead of PluginUpdate so when updated to version 4.0.2 I can now see the issue!

selection_02_06_15_19 04 39_202x218_001

from vim-devicons.

stuartmemo avatar stuartmemo commented on May 5, 2024

Ah, amazing! That worked a treat.

The icons are quite tight with the text though now, it was quite nice having a bit more space. I know, never happy 🐸

screen shot 2015-06-03 at 10 50 51

from vim-devicons.

ryanoasis avatar ryanoasis commented on May 5, 2024

@stuartmemo

  1. Great to know it worked for you as well.
  2. About the tightness that is actually configurable 😉

Per the readme:
the amount of space to use after the glyph character (default ' ')

let g:WebDevIconsNerdTreeAfterGlyphPadding = '  '

from vim-devicons.

stuartmemo avatar stuartmemo commented on May 5, 2024

@ryanoasis You rule the school. Thank you so much.

from vim-devicons.

kristijanhusak avatar kristijanhusak commented on May 5, 2024

Hi,

I'm having the same bug. It is caused by Conceal highlighting in the color scheme.

Adding

hi Conceal guibg=NONE

To vimrc solves the issue.

Edit: Solution with autocmd is better because it removes conceal. This just changes it's color, and can be noticed if cursorline is enabled.

from vim-devicons.

ryanoasis avatar ryanoasis commented on May 5, 2024

@kristijanhusak Thanks, yeah I believe the autocmd change will fix it. Just to confirm did the autocmd change I posted work for you?

If not I will at least add your fix as a possibility on the readme.

from vim-devicons.

kristijanhusak avatar kristijanhusak commented on May 5, 2024

@ryanoasis Yes, autocmd works for me, and as i said, it's better solution because of colors with cursorline.
You could add it if you want as an alternative solution, if autocmd does not work for someone.

from vim-devicons.

ryanoasis avatar ryanoasis commented on May 5, 2024

fixed/completed with latest release

from vim-devicons.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.