Comments (7)
Ok, I found the culprit. It's my default shell being set to zsh. I suppose every time the plugin tries to populate the file list, it loads my whole zsh environment, which is quite slow - lot of aliases, shell prompt customization, and stuff. Running let &shell="/usr/bin/env bash"
and using bash, which is much less customized on my system, makes the file listing appear instantaneously.
from fzf-preview.vim.
They differ in the command they are creating to generate the list.
Is it possible to measure the time required to execute the g:fzf_preview_filelist_command
command and the time required to execute the g:fzf_preview_git_files_command
command?
from fzf-preview.vim.
Since I am doing async load with heavy processing in zinit, zsh startup is very fast
It has nothing to do with this plugin, but setting it can significantly improve zsh startup time.
from fzf-preview.vim.
I'm having the same issue. @metalelf0 where did you set let &shell="/usr/bin/env bash"
?
from fzf-preview.vim.
@lynndylanhurley I set it manually in vim (via :let ...
), but I think putting that at the end of your .vimrc
(or init.vim
for neovim) would be equivalent. Btw, I tried going the zinit
route in my .zshrc
, it's really powerful. Pretty steep learning curve, but I managed to reduce my shell startup time greatly and I don't need the &shell
hack anymore.
from fzf-preview.vim.
@metalelf0 oh nice, thanks for the tip. I'll check out zinit
as well.
from fzf-preview.vim.
Did you solve?
close
from fzf-preview.vim.
Related Issues (20)
- Document opening multiple files with TAB in preview window HOT 1
- [Feature Request] Open all files in fzf-preview HOT 2
- FZF search history feature request HOT 3
- [Question] $FZF_PREVIEW_PREVIEW_BAT_THEME has no effect? HOT 6
- Live grep HOT 3
- Ctags error
- Bunch of unknown characters showing on the first line HOT 2
- Support fzf_preview_command when doing ProjectGrep HOT 1
- Preview's highligt-line may not work in Vim HOT 4
- If the path of a file in the buffer list contains space, Bat preview fails
- FromResources aborts when any of the resources fail to load
- Issue when installing in Win 10
- bufferlines not working properly when working directory changed
- Feature request: add ability to use nerdfont.vim plugin to display filetype icons
- fish: Command substitutions not allowed HOT 1
- Use of ctags is hard coded as a constant HOT 1
- Older versions of Node throwing SyntaxError: Unexpected token '?' HOT 2
- Feature idea: include additional file search paths that are normally ignored by git / ripgrep
- Use project commands like `:FzfPreviewProjectFiles` and `:FzfPreviewProjectMruFiles` on non-git repos HOT 2
- :CocCommand fzf-preview.ProjectGrep . doesn't respect .gitignore
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fzf-preview.vim.