ryanoasis / vim-devicons

Adds file type icons to Vim plugins such as: NERDTree, vim-airline, CtrlP, unite, Denite, lightline, vim-startify and many more
MIT License
5.64k stars 266 forks source link

GVim very slow when testing the lightline snippet from the docs #312

Closed ntropia2 closed 4 years ago

ntropia2 commented 4 years ago

Required Info

I just tested the example code for Lightline (section: devicons-lightline-setup) to enable the icons in the status and it works perfectly fine. I did not customize LightLine and I am using only the code in the example in my vimrc. When I enable the two functions in the example (MyFiletype and MyFileFormat), the gui becomes terribly slow, barely usable.

For reference, I use the icons in NerdTree without any problem. This is the list of all the plugins I use:

Plug 'tpope/vim-sensible' Plug 'scrooloose/nerdtree' Plug 'junegunn/goyo.vim' Plug 'mhinz/vim-startify' Plug 'prabirshrestha/async.vim' Plug 'prabirshrestha/vim-lsp' Plug 'prabirshrestha/asyncomplete.vim' Plug 'prabirshrestha/asyncomplete-lsp.vim' Plug 'jiangmiao/auto-pairs' Plug 'itchyny/lightline.vim' Plug 'Shougo/echodoc.vim' Plug 'tiagofumo/vim-nerdtree-syntax-highlight' Plug 'ervandew/supertab' Plug 'Yggdroot/hiPairs' Plug 'Yggdroot/indentLine' Plug 'ryanoasis/vim-devicons'

doronbehar commented 4 years ago

I experience a similar issue tested on Neovim with airline and devicons only and I've bisected the issue to: https://github.com/ryanoasis/vim-devicons/pull/306 - right before it files load and are edited smoothly and right after it editing is sssssssslow.. Probably similar to what @petobens was experiencing.

Makes sense considering there's an external command there that's probably being run on every update of a status line or whatever.

cc @Innei.

ryanoasis commented 4 years ago

@doronbehar is it resolved with #310 ?

doronbehar commented 4 years ago

Yes :).

ntropia2 commented 4 years ago

I confirm it works on on my Vim, too! Thanks!