maartenstaa / file-web-devicons Goto Github PK
View Code? Open in Web Editor NEWPrepends filetype icons to paths read from stdin
Prepends filetype icons to paths read from stdin
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.