Giter VIP home page Giter VIP logo

file-web-devicons's People

Contributors

maartenstaa avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

wjdwndud0114

file-web-devicons's Issues

The reason you're having a delay in files showin up in large repos

Hi,

I became aware of this repo due to ibhagwan/fzf-lua#1188.

From your README (and the motivation for the above issue):

I found that, in large Git projects, fzf-lua's default files provider would have a delay of several seconds before files would show up

This doesn't happen due to the icons being slow to load, this happens due to the defaults using git_icons=true (adding M next to modified files, etc), unfortunately this requires having to wait for git status -sb to end before being able to start the file enumeration.

However simply running the below should solve the issue:

:FzfLua files git_icons=false

Disabling just for files:

require("fzf-lua").setup({
  files = { git_icons=false },
})

Disabling globally:

require("fzf-lua").setup({
  defaults = { git_icons=false },
})

Btw, since even the author of mini.nvim wasn't aware of this:
https://redlib.freedit.eu/r/neovim/comments/1coyfk0/slowly_switching_almost_everything_to_mininvim/l3kehut/

I've since added a warning if the initial git status takes longer than 3s:
https://github.com/ibhagwan/fzf-lua/blob/7109a18dd1832703209fc8f46e85df3c6ed6d059/lua/fzf-lua/make_entry.lua#L79-L80

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.