Goku-San / devIcons_customColors

Workaround for devicons issue
0 stars 0 forks source link

Icons get cutted and weird color highlighting #1

Open gantoreno opened 4 years ago

gantoreno commented 4 years ago

After installing vim-nerdtree-syntax-highlight, I noticed none of my icons were getting colored:

Screenshot from 2020-05-11 19-46-25

So I found this repo and implemented the solution to see if it could get fixed. But after downloading and sourcing the files, now the icons get cutted almost in half (for example, the TS icon), and color highlighting seems a bit werd (I assume those colors are not following the correct rules for some reason):

Screenshot from 2020-05-11 19-52-50

My vimrc:

call plug#begin('~/.vim/plugged')
  Plug 'rafi/awesome-vim-colorschemes'
  Plug 'scrooloose/nerdtree'
  Plug 'scrooloose/nerdcommenter'
  Plug 'mxw/vim-jsx'
  Plug 'Xuyuanp/nerdtree-git-plugin'
  Plug 'ryanoasis/vim-devicons'
  Plug 'tiagofumo/vim-nerdtree-syntax-highlight'
  Plug 'pangloss/vim-javascript'
  Plug 'mxw/vim-jsx'
  Plug 'leafgarland/typescript-vim'
  Plug 'peitalin/vim-jsx-typescript'
  Plug 'neoclide/coc.nvim', {'branch': 'release'}
call plug#end()

colorscheme gruvbox

syntax on
filetype indent on
filetype plugin indent on

set number
set relativenumber
set cursorline
set noerrorbells
set expandtab
set cindent

set tabstop=2
set softtabstop=0
set shiftwidth=2

set encoding=UTF-8
set t_Co=256
set laststatus=2
set signcolumn=yes
set background=dark
set mouse+=a
set backspace=indent,eol,start
map <C-n> :NERDTreeToggle<CR>

vmap cc <plug>NERDCommenterToggle
nmap cc <plug>NERDCommenterToggle

if &term =~ '^screen'
  execute "set <xUp>=\e[1;*A"
  execute "set <xDown>=\e[1;*B"
  execute "set <xRight>=\e[1;*C"
  execute "set <xLeft>=\e[1;*D"
endif

let g:nerdtree_tabs_focus_on_files=1
let g:NERDSpaceDelims = 1
let g:NERDTrimTrailingWhitespace = 1

source /home/gabriel/.vim/devIcons_customColors.vim
Goku-San commented 4 years ago

Hello @hollandsgabe

First comment out the vim-nerdtree-syntax-highlight " Plug 'tiagofumo/vim-nerdtree-syntax-highlight'

Second comment out " set t_Co=256 and set termguicolors Try this in plain terminal, if your terminal supports true color, it must have true colors in order for this to work! Also check if your vim is complied with +termguicolos option. To check for the option, enter vim and :version For tmux try googling how to set tmux to use true colors. I don't use tmux so I can't help you there.

icons_issue1

As far as for the TS icon or any other that is broken, try to change your nerd font to some other nerd font, I don't know what to say. As you can see in the image, its oki on my end. This is terminal vim and my terminal is xfce terminal.

Another thing, I just updated the icons, it turns out that the .tsx icon wasn't the correct one that is actually in the plugin :smile: You can find the icon in the file on L151 and put it in the array where the blue color is 0000ff, or download the file again.

I hope you make this work.