Comments (13)
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.
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.
So the brackets thing removed the colour and I ended up with this.
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.
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.
@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 😞
from vim-devicons.
@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!
from vim-devicons.
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 🐸
from vim-devicons.
- Great to know it worked for you as well.
- 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.
@ryanoasis You rule the school. Thank you so much.
from vim-devicons.
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.
@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.
@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.
fixed/completed with latest release
from vim-devicons.
Related Issues (20)
- Nerdtree icons are looking weird . HOT 1
- NERDTree needs to be called after vim-devicons HOT 4
- WSL NERDTree only works with patched fonts that are in the `.ttf` format
- Link of Powerline setup in wiki is broken HOT 1
- Custom Folder Icons for Matching Folder Patters or Words in Vim and NeoVim
- Incorrect Icons in NERDTree HOT 1
- NERDTree icons all pink OR with square brackets if I change color. HOT 1
- Add support for Vite configuration files (`vite.config.ts`, `vite.config.js`)
- Add support for Docker Compose files (`docker-compose.yaml`, `compose.yaml`)
- Devicons are not visible (If you are a SpaceVim user, refer to this issue) HOT 1
- Misalignment due to length of folder name HOT 1
- Colored Icons HOT 1
- Provide option to configure distro icon
- Missing icons after install on Windows WSL2 (Running Ubuntu 22.04) HOT 1
- How would I integrate vim-devicons into vim's quickfix list
- Icons are squares with question mark in the middle on MacVim. HOT 1
- Codepoint of some icons changed in nerd-fonts 3.0.0
- [Bug]: Vim in termux have a little issue
- ExactSymbols doesn't override icon set by ExtensionSymbols
- Redundant spaces between NERDTree directory symbol and devicons directory icon HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vim-devicons.