-
Notifications
You must be signed in to change notification settings - Fork 267
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
icons in NERDtree can be only shown half. #133
Comments
For the dots try: autocmd FileType nerdtree setlocal nolist For spacing you can adjust with: let g:WebDevIconsNerdTreeAfterGlyphPadding = ' ' |
@ryanoasis Works! Thank you! |
Hey no problem. Maybe I should consider setting this in the plugin by default |
I will try to test your vimrc, I think I found it on GitHub but could you post a link to the latest one? In the meantime, are you using latest version of NerdTree and devicons? Can you tell me which font you are using? Is this macvim (gui) or vim on terminal? |
Hi ryanoasis, Yes,they are both latest version. It is macvim(gui) I suspect that the differing versions of macvim cause it. Regards, |
@code-geeker Sorry for the delayed response. I am looking into this issue. BTW for the terminal vim you showed can you give the output of |
@ryanoasis Thanks for your response. |
Thanks. I will try to do some more digging |
same issue as @code-geeker MacVim snapshot-104 set guifont=Meslo\ LG\ M\ Regular\ for\ Powerline\ Nerd\ Font\ Complete:h12 works well in terminal, even in neovim |
Sorry I still haven't had a chance to look into this, however @xusiyuan841028 has shared some info in the Gitter Chat that might be of some help to some of you. ¯_(ツ)_/¯ Some other references from searching (unsure if completely related): |
So, this can fix the issue |
The original issue from @d0u9 was actually a different problem (#84, #110) but we seem to now be using this issue in regards to a new (harder?) problem 😛 ... so I am going to re-open this so there is less confusion and it's easier to find @lerrua Hey yep sorry, still a serious issue. Just wondering if anyone has been able to try @xusiyuan841028 suggested fix?
|
My fix https://github.com/xusiyuan841028/macvim/commit/27bcfd27d6c3500b6ca27c7387a19b5a8306df17 You can install my edge version by: brew install --HEAD xusiyuan841028/macvim/macvim |
@xusiyuan841028 Thanks I just have not been able to test it out (I don't have access to a mac at the moment). I was hoping someone else could verify/try the suggested fix |
Seems like possibly due to change vim/vim@cb07008 ? I really need to test on an updated version of vim. Will try this weekend |
@xusiyuan841028 I've tried your patched version, but still have half icons bug.
Is there anything else needed here? VIM - Vi IMproved 7.4 (2013 Aug 10, compiled May 14 2016 22:15:27) |
@valerybugakov Thanks for trying! I am not really sure if anything else is needed 😟 |
@ryanoasis oh, if there will be something I can do to help with this issue - tell me 😊 |
@valerybugakov I have tested the fixed macvim in another macbook, and it is fine. The version info is as following:
I find the message
|
@xusiyuan841028 thanks for the info, will try again in an hour 👍 |
@valerybugakov please pay attention to |
@xusiyuan841028 should my
I still have the same result 😥 After installation I got a warning from |
@ActionScripted That's a very good idea 😄
however it looks like ambiwidth is not something that has a local value as it will always apply globally |
@WillianGoncalves thanks for the info. Hmm my guess is that this would be the same affect as doing a |
No, @ryanoasis. |
@ActionScripted An simple example here using a global variable to stock the default options: augroup custom_nerdtree_options
autocmd!
autocmd FileType,WinEnter * :call <SID>SetNerdTreeOptions()
augroup END
function! s:SetNerdTreeOptions() abort
if &l:filetype ==# 'nerdtree'
let g:default_opts = {
\ 'ambiwidth': &ambiwidth,
\ 'listchars': &listchars,
\ 'list' : &l:list,
\ }
setlocal ambiwidth=double listchars=space:. nolist
else
if exists('g:default_opts')
let [&ambiwidth, &listchars, &l:list] = [
\ g:default_opts.ambiwidth,
\ g:default_opts.listchars,
\ g:default_opts.list
\ ]
unlet g:default_opts
endif
endif
endfunction |
Having the same issue here, with neovim 0.2.0, and vim-devicons latest version. It doesn't look like it happens on every file though: Note that the icon on Hope this helps. EDIT: It looks like it's happening on the colourised ones only, maybe? |
@MyGitTools That is strange. Which font are you using? |
thank you for replying my question
…On Tue, Nov 21, 2017 at 10:58 AM, Ryan L McIntyre ***@***.***> wrote:
@MyGitTools <https://github.com/mygittools> That is strange. Which font
are you using?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#133 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AXqcshmZfhHTWf7cSIDKzevJiA21BVmMks5s4jxHgaJpZM4G4kYu>
.
|
Summary of MacVim so far seems to be: Setting CoreText Renderer=off fixes the problem and tanks perf/quality. Notice the gap next to the arrow. That only shows up with ambiwidth=double. |
Still happening here:
|
@lucascaton The latest macVim should have my pull request which fixes it. |
Awesome, thanks @jordwalke! |
It looks this issue only happens when gtk version is 2.0. |
I am facing the problem with the cut-off devicons under Windows 10 too with GVim 8.1. Patching the font with option |
I have suggested to @fabrizioschiavi (creator of Pragamata Pro font), that for maximum compatibility, NERD fonts (and other wide glyphs) be implemented as ligatures. So what that means is that everything can remain monospaced, but then if you include a vim-devicon character followed by a space, the font would render it as the nerd icon. This should avoid the most amount of rendering bugs and work in the most editors - as long as they support ligatures (which they are increasingly) |
I'm in Linux, and I can confirm for myself that its something related to tiagofumo/vim-nerdtree-syntax-highlight. My guess is that there is some error that makes the glyph only take one character, regardless of the padding, but I might be completely wrong. |
I have this problem with using Inconsolata font. I have the same font on both my terminal and gvim. The terminal vim display icons fine, gvim cuts them in half. |
Same problem using Inconsolata font, too. |
I had this very issue with neovim v0.4.3, with the font Noto Mono Nerd Font. I discovered it was in fact the plugin tiagofumo/vim-nerdtree-syntax-highlight that caused the issue. Not all icons are displayed as expected. |
@TheMasteredPanda I don't have that plugin and I also have the issue, not only in nerdtree which I barely use but also on ctrlpvim/ctrlp.vim |
thanks removing that plugin worked for me |
that worked! |
Same problem here with Vim 8.1 and Ubuntu 20.04. I tried removing
|
Guys all you need it to change your terminal Fonts, cz some fonts aren't shown whole Icons, so just change terminal font fixes my issue. It's not a version problem or something similar, it's just fonts. |
A picture is worth a thousand words:
There are dots shield half part of each icon in NERDtree.
Also, the space between icons and characters seems to wide...
PS: I use neovim and iTerm2 in OSX 10.11.2
The text was updated successfully, but these errors were encountered: