nvim-telescope / telescope-file-browser.nvim

File Browser extension for telescope.nvim
MIT License
1.6k stars 89 forks source link

fix: move has_fd check into a function to reduce startup time #390

Closed scanhex closed 4 weeks ago

scanhex commented 1 month ago

vim.fn.executable "fd" takes up to one second, at least on WSL 2 + NixOS setup I'm using. In this PR I'm moving the invocation into a lazy function so that when the plugin is loaded at startup the user wouldn't incur this cost right away.

jamestrew commented 4 weeks ago

Sorry for the delay. Strange that vim.fn.executable takes that long but turning this check lazy and caching is not a bad idea.

Thanks!