Closed scanhex closed 4 weeks 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.
vim.fn.executable "fd"
Sorry for the delay. Strange that vim.fn.executable takes that long but turning this check lazy and caching is not a bad idea.
vim.fn.executable
Thanks!
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.