wbthomason / packer.nvim

A use-package inspired plugin manager for Neovim. Uses native packages, supports Luarocks dependencies, written in Lua, allows for expressive config
MIT License
7.72k stars 263 forks source link

got a timeout due to git #1202

Open ghost opened 1 year ago

ghost commented 1 year ago

Hello. Sometimes my internet connection speed is bad, it takes much time to download data (speed is about 100 kb/s in these case). I got an error like the following: [packer.nvim] [WARN 15:23:35] jobs.lua:94: Killing git due to timeout!

Is there any variable that manages a timeout? How can I increase it?

Steps to reproduce

running :PackerSync or PackerInstall

Actual behaviour

[packer.nvim] [WARN 15:23:35] jobs.lua:94: Killing git due to timeout!

Expected behaviour

packer files

Plugin specification file(s) Post or link your plugin specification files here, if you aren't able to provide a minimal reproducer
packer log file [WARN dom 22 gen 2023 15:08:05 602353778066] ...m/site/pack/packer/start/ packer.nvim/lua/packer/jobs.lua:94: Killing git due to timeout! [ERROR dom 22 gen 2023 15:10:30 747642101475] ...e/nvim/site/pack/packer/s tart/packer.nvim/lua/packer.lua:1022: Failure running setup function: "/home/g ro/.config/nvim/lua/plugged.lua:396: module 'nvim-spectre' not found:\n\tno fi eld package.preload['nvim-spectre']\n\tno file './nvim-spectre.lua'\n\tno file '/usr/share/luajit-2.1.0-beta3/nvim-spectre.lua'\n\tno file '/usr/local/share /lua/5.1/nvim-spectre.lua'\n\tno file '/usr/local/share/lua/5.1/nvim-spectre/i nit.lua'\n\tno file '/usr/share/lua/5.1/nvim-spectre.lua'\n\tno file '/usr/sha re/lua/5.1/nvim-spectre/init.lua'\n\tno file './nvim-spectre.so'\n\tno file '/ usr/local/lib/lua/5.1/nvim-spectre.so'\n\tno file '/usr/lib/lua/5.1/nvim-spect re.so'\n\tno file '/usr/local/lib/lua/5.1/loadall.so'" [ERROR dom 22 gen 2023 15:11:28 805425677172] ...e/nvim/site/pack/packer/s tart/packer.nvim/lua/packer.lua:1022: Failure running setup function: "/home/g ro/.config/nvim/lua/plugged.lua:396: module 'nvim-spectre' not found:\n\tno fi eld package.preload['nvim-spectre']\n\tno file './nvim-spectre.lua'\n\tno file '/usr/share/luajit-2.1.0-beta3/nvim-spectre.lua'\n\tno file '/usr/local/share /lua/5.1/nvim-spectre.lua'\n\tno file '/usr/local/share/lua/5.1/nvim-spectre/i nit.lua'\n\tno file '/usr/share/lua/5.1/nvim-spectre.lua'\n\tno file '/usr/sha re/lua/5.1/nvim-spectre/init.lua'\n\tno file './nvim-spectre.so'\n\tno file '/ usr/local/lib/lua/5.1/nvim-spectre.so'\n\tno file '/usr/lib/lua/5.1/nvim-spect re.so'\n\tno file '/usr/local/lib/lua/5.1/loadall.so'" [ERROR dom 22 gen 2023 15:11:37 814936329057] ...e/nvim/site/pack/packer/s tart/packer.nvim/lua/packer.lua:1022: Failure running setup function: "/home/g ro/.config/nvim/lua/plugged.lua:396: module 'spectre' not found:\n\tno field p ackage.preload['spectre']\n\tno file './spectre.lua'\n\tno file '/usr/share/lu ajit-2.1.0-beta3/spectre.lua'\n\tno file '/usr/local/share/lua/5.1/spectre.lua '\n\tno file '/usr/local/share/lua/5.1/spectre/init.lua'\n\tno file '/usr/shar e/lua/5.1/spectre.lua'\n\tno file '/usr/share/lua/5.1/spectre/init.lua'\n\tno file './spectre.so'\n\tno file '/usr/local/lib/lua/5.1/spectre.so'\n\tno file '/usr/lib/lua/5.1/spectre.so'\n\tno file '/usr/local/lib/lua/5.1/loadall.so'"
packer compiled file -- Automatically generated packer.nvim plugin loader code if vim.api.nvim_call_function('has', {'nvim-0.5'}) ~= 1 then vim.api.nvim_command('echohl WarningMsg | echom "Invalid Neovim version for packer.nvim! | echohl None"') return end vim.api.nvim_command('packadd packer.nvim') local no_errors, error_msg = pcall(function() _G._packer = _G._packer or {} _G._packer.inside_compile = true local time local profile_info local should_profile = false if should_profile then local hrtime = vim.loop.hrtime profile_info = {} time = function(chunk, start) if start then profile_info[chunk] = hrtime() else profile_info[chunk] = (hrtime() - profile_info[chunk]) / 1e6 end end else time = function(chunk, start) end end local function save_profiles(threshold) local sorted_times = {} for chunk_name, time_taken in pairs(profile_info) do sorted_times[#sorted_times + 1] = {chunk_name, time_taken} end table.sort(sorted_times, function(a, b) return a[2] > b[2] end) local results = {} for i, elem in ipairs(sorted_times) do if not threshold or threshold and elem[2] > threshold then results[i] = elem[1] .. ' took ' .. elem[2] .. 'ms' end end if threshold then table.insert(results, '(Only showing plugins that took longer than ' .. threshold .. ' ms ' .. 'to load)') end _G._packer.profile_output = results end time([[Luarocks path setup]], true) local package_path_str = "/home/gro/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/?.lua;/home/gro/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/?/init.lua;/home/gro/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/?.lua;/home/gro/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/?/init.lua" local install_cpath_pattern = "/home/gro/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/lua/5.1/?.so" if not string.find(package.path, package_path_str, 1, true) then package.path = package.path .. ';' .. package_path_str end if not string.find(package.cpath, install_cpath_pattern, 1, true) then package.cpath = package.cpath .. ';' .. install_cpath_pattern end time([[Luarocks path setup]], false) time([[try_loadstring definition]], true) local function try_loadstring(s, component, name) local success, result = pcall(loadstring(s), name, _G.packer_plugins[name]) if not success then vim.schedule(function() vim.api.nvim_notify('packer.nvim: Error running ' .. component .. ' for ' .. name .. ': ' .. result, vim.log.levels.ERROR, {}) end) end return result end time([[try_loadstring definition]], false) time([[Defining packer_plugins]], true) _G.packer_plugins = { ["Comment.nvim"] = { config = { "\27LJ\2\n5\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\fComment\frequire\0" }, loaded = true, path = "/home/gro/.local/share/nvim/site/pack/packer/start/Comment.nvim", url = "https://github.com/numToStr/Comment.nvim" }, LuaSnip = { loaded = true, path = "/home/gro/.local/share/nvim/site/pack/packer/start/LuaSnip", url = "https://github.com/L3MON4D3/LuaSnip" }, ["any-jump.vim"] = { loaded = true, path = "/home/gro/.local/share/nvim/site/pack/packer/start/any-jump.vim", url = "https://github.com/pechorin/any-jump.vim" }, ["cmp-nvim-lsp"] = { loaded = true, path = "/home/gro/.local/share/nvim/site/pack/packer/start/cmp-nvim-lsp", url = "https://github.com/hrsh7th/cmp-nvim-lsp" }, cmp_luasnip = { loaded = true, path = "/home/gro/.local/share/nvim/site/pack/packer/start/cmp_luasnip", url = "https://github.com/saadparwaiz1/cmp_luasnip" }, cpsm = { loaded = true, path = "/home/gro/.local/share/nvim/site/pack/packer/start/cpsm", url = "https://github.com/nixprime/cpsm" }, ["dressing.nvim"] = { loaded = true, path = "/home/gro/.local/share/nvim/site/pack/packer/start/dressing.nvim", url = "https://github.com/stevearc/dressing.nvim" }, fd = { loaded = true, path = "/home/gro/.local/share/nvim/site/pack/packer/start/fd", url = "https://github.com/sharkdp/fd" }, ["fidget.nvim"] = { loaded = true, path = "/home/gro/.local/share/nvim/site/pack/packer/start/fidget.nvim", url = "https://github.com/j-hui/fidget.nvim" }, ["filetype.nvim"] = { loaded = true, path = "/home/gro/.local/share/nvim/site/pack/packer/start/filetype.nvim", url = "https://github.com/nathom/filetype.nvim" }, ["fzy-lua-native"] = { loaded = true, path = "/home/gro/.local/share/nvim/site/pack/packer/start/fzy-lua-native", url = "https://github.com/romgrk/fzy-lua-native" }, ["gitsigns.nvim"] = { loaded = true, path = "/home/gro/.local/share/nvim/site/pack/packer/start/gitsigns.nvim", url = "https://github.com/lewis6991/gitsigns.nvim" }, ["gruvbox-material"] = { loaded = true, path = "/home/gro/.local/share/nvim/site/pack/packer/start/gruvbox-material", url = "https://github.com/sainnhe/gruvbox-material" }, ["guess-indent.nvim"] = { config = { "\27LJ\2\n:\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\17guess-indent\frequire\0" }, loaded = true, path = "/home/gro/.local/share/nvim/site/pack/packer/start/guess-indent.nvim", url = "https://github.com/nmac427/guess-indent.nvim" }, ["indent-blankline.nvim"] = { loaded = true, path = "/home/gro/.local/share/nvim/site/pack/packer/start/indent-blankline.nvim", url = "https://github.com/lukas-reineke/indent-blankline.nvim" }, ["indent-o-matic"] = { loaded = true, path = "/home/gro/.local/share/nvim/site/pack/packer/start/indent-o-matic", url = "https://github.com/Darazaki/indent-o-matic" }, ["kanagawa.nvim"] = { loaded = true, path = "/home/gro/.local/share/nvim/site/pack/packer/start/kanagawa.nvim", url = "https://github.com/rebelot/kanagawa.nvim" }, ["lsp-colors.nvim"] = { loaded = true, path = "/home/gro/.local/share/nvim/site/pack/packer/start/lsp-colors.nvim", url = "https://github.com/folke/lsp-colors.nvim" }, ["lualine.nvim"] = { loaded = true, path = "/home/gro/.local/share/nvim/site/pack/packer/start/lualine.nvim", url = "https://github.com/nvim-lualine/lualine.nvim" }, ["lush.nvim"] = { loaded = true, path = "/home/gro/.local/share/nvim/site/pack/packer/start/lush.nvim", url = "https://github.com/rktjmp/lush.nvim" }, ["mason-lspconfig.nvim"] = { loaded = true, path = "/home/gro/.local/share/nvim/site/pack/packer/start/mason-lspconfig.nvim", url = "https://github.com/williamboman/mason-lspconfig.nvim" }, ["mason.nvim"] = { loaded = true, path = "/home/gro/.local/share/nvim/site/pack/packer/start/mason.nvim", url = "https://github.com/williamboman/mason.nvim" }, ["mini.nvim"] = { loaded = true, path = "/home/gro/.local/share/nvim/site/pack/packer/start/mini.nvim", url = "https://github.com/echasnovski/mini.nvim" }, ["neodev.nvim"] = { loaded = true, path = "/home/gro/.local/share/nvim/site/pack/packer/start/neodev.nvim", url = "https://github.com/folke/neodev.nvim" }, neodim = { config = { "\27LJ\2\n¹\1\0\0\4\0\b\0\v6\0\0\0'\2\1\0B\0\2\0029\0\2\0005\2\3\0005\3\4\0=\3\5\0025\3\6\0=\3\a\2B\0\2\1K\0\1\0\thide\1\0\3\14underline\1\nsigns\1\17virtual_text\1\21update_in_insert\1\0\2\venable\1\ndelay\3È\1\1\0\2\16blend_color\f#10171f\nalpha\4\0€€ ÿ\3\nsetup\vneodim\frequire\0" }, loaded = false, needs_bufread = false, only_cond = false, path = "/home/gro/.local/share/nvim/site/pack/packer/opt/neodim", url = "https://github.com/zbirenbaum/neodim" }, neomake = { loaded = true, path = "/home/gro/.local/share/nvim/site/pack/packer/start/neomake", url = "https://github.com/neomake/neomake" }, ["nerdfont.vim"] = { loaded = true, path = "/home/gro/.local/share/nvim/site/pack/packer/start/nerdfont.vim", url = "https://github.com/lambdalisue/nerdfont.vim" }, ["null-ls.nvim"] = { loaded = true, path = "/home/gro/.local/share/nvim/site/pack/packer/start/null-ls.nvim", url = "https://github.com/jose-elias-alvarez/null-ls.nvim" }, ["nvim-autopairs"] = { loaded = true, path = "/home/gro/.local/share/nvim/site/pack/packer/start/nvim-autopairs", url = "https://github.com/windwp/nvim-autopairs" }, ["nvim-cmp"] = { loaded = true, path = "/home/gro/.local/share/nvim/site/pack/packer/start/nvim-cmp", url = "https://github.com/hrsh7th/nvim-cmp" }, ["nvim-dap"] = { loaded = true, path = "/home/gro/.local/share/nvim/site/pack/packer/start/nvim-dap", url = "https://github.com/mfussenegger/nvim-dap" }, ["nvim-dap-ui"] = { loaded = true, path = "/home/gro/.local/share/nvim/site/pack/packer/start/nvim-dap-ui", url = "https://github.com/rcarriga/nvim-dap-ui" }, ["nvim-lspconfig"] = { loaded = true, path = "/home/gro/.local/share/nvim/site/pack/packer/start/nvim-lspconfig", url = "https://github.com/neovim/nvim-lspconfig" }, ["nvim-navic"] = { loaded = true, path = "/home/gro/.local/share/nvim/site/pack/packer/start/nvim-navic", url = "https://github.com/SmiteshP/nvim-navic" }, ["nvim-peekup"] = { loaded = true, path = "/home/gro/.local/share/nvim/site/pack/packer/start/nvim-peekup", url = "https://github.com/gennaro-tedesco/nvim-peekup" }, ["nvim-revJ.lua"] = { loaded = true, path = "/home/gro/.local/share/nvim/site/pack/packer/start/nvim-revJ.lua", url = "https://github.com/AckslD/nvim-revJ.lua" }, ["nvim-smartbufs"] = { loaded = true, path = "/home/gro/.local/share/nvim/site/pack/packer/start/nvim-smartbufs", url = "https://github.com/johann2357/nvim-smartbufs" }, ["nvim-spectre"] = { loaded = true, path = "/home/gro/.local/share/nvim/site/pack/packer/start/nvim-spectre", url = "https://github.com/windwp/nvim-spectre" }, ["nvim-tree.lua"] = { loaded = true, path = "/home/gro/.local/share/nvim/site/pack/packer/start/nvim-tree.lua", url = "https://github.com/nvim-tree/nvim-tree.lua" }, ["nvim-treesitter"] = { loaded = true, path = "/home/gro/.local/share/nvim/site/pack/packer/start/nvim-treesitter", url = "https://github.com/nvim-treesitter/nvim-treesitter" }, ["nvim-treesitter-textobjects"] = { load_after = {}, loaded = true, needs_bufread = false, path = "/home/gro/.local/share/nvim/site/pack/packer/opt/nvim-treesitter-textobjects", url = "https://github.com/nvim-treesitter/nvim-treesitter-textobjects" }, ["nvim-web-devicons"] = { loaded = true, path = "/home/gro/.local/share/nvim/site/pack/packer/start/nvim-web-devicons", url = "https://github.com/kyazdani42/nvim-web-devicons" }, ["nvim-yarp"] = { loaded = true, path = "/home/gro/.local/share/nvim/site/pack/packer/start/nvim-yarp", url = "https://github.com/roxma/nvim-yarp" }, ["packer.nvim"] = { loaded = true, path = "/home/gro/.local/share/nvim/site/pack/packer/start/packer.nvim", url = "https://github.com/wbthomason/packer.nvim" }, ["plenary.nvim"] = { loaded = true, path = "/home/gro/.local/share/nvim/site/pack/packer/start/plenary.nvim", url = "https://github.com/nvim-lua/plenary.nvim" }, ["popup.nvim"] = { loaded = true, path = "/home/gro/.local/share/nvim/site/pack/packer/start/popup.nvim", url = "https://github.com/nvim-lua/popup.nvim" }, ["registers.nvim"] = { config = { "\27LJ\2\n7\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\14registers\frequire\0" }, loaded = true, path = "/home/gro/.local/share/nvim/site/pack/packer/start/registers.nvim", url = "https://github.com/tversteeg/registers.nvim" }, ["telescope-fzf-native.nvim"] = { cond = { true }, loaded = false, needs_bufread = false, only_cond = true, path = "/home/gro/.local/share/nvim/site/pack/packer/opt/telescope-fzf-native.nvim", url = "https://github.com/nvim-telescope/telescope-fzf-native.nvim" }, ["telescope.nvim"] = { loaded = true, path = "/home/gro/.local/share/nvim/site/pack/packer/start/telescope.nvim", url = "https://github.com/nvim-telescope/telescope.nvim" }, tlib_vim = { loaded = true, path = "/home/gro/.local/share/nvim/site/pack/packer/start/tlib_vim", url = "https://github.com/tomtom/tlib_vim" }, ["trailertrash.vim"] = { loaded = true, path = "/home/gro/.local/share/nvim/site/pack/packer/start/trailertrash.vim", url = "https://github.com/csexton/trailertrash.vim" }, ["trouble.nvim"] = { config = { "\27LJ\2\n9\0\0\3\0\3\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0004\2\0\0B\0\2\1K\0\1\0\nsetup\ftrouble\frequire\0" }, loaded = true, path = "/home/gro/.local/share/nvim/site/pack/packer/start/trouble.nvim", url = "https://github.com/folke/trouble.nvim" }, ["unicode.vim"] = { loaded = true, path = "/home/gro/.local/share/nvim/site/pack/packer/start/unicode.vim", url = "https://github.com/chrisbra/unicode.vim" }, ["vim-characterize"] = { loaded = true, path = "/home/gro/.local/share/nvim/site/pack/packer/start/vim-characterize", url = "https://github.com/tpope/vim-characterize" }, ["vim-eunuch"] = { loaded = true, path = "/home/gro/.local/share/nvim/site/pack/packer/start/vim-eunuch", url = "https://github.com/tpope/vim-eunuch" }, ["vim-flog"] = { loaded = true, path = "/home/gro/.local/share/nvim/site/pack/packer/start/vim-flog", url = "https://github.com/rbong/vim-flog" }, ["vim-fugitive"] = { loaded = true, path = "/home/gro/.local/share/nvim/site/pack/packer/start/vim-fugitive", url = "https://github.com/tpope/vim-fugitive" }, ["vim-hug-neovim-rpc"] = { loaded = true, path = "/home/gro/.local/share/nvim/site/pack/packer/start/vim-hug-neovim-rpc", url = "https://github.com/roxma/vim-hug-neovim-rpc" }, ["vim-illuminate"] = { loaded = true, path = "/home/gro/.local/share/nvim/site/pack/packer/start/vim-illuminate", url = "https://github.com/RRethy/vim-illuminate" }, ["vim-matchup"] = { after_files = { "/home/gro/.local/share/nvim/site/pack/packer/opt/vim-matchup/after/plugin/matchit.vim" }, loaded = false, needs_bufread = true, only_cond = false, path = "/home/gro/.local/share/nvim/site/pack/packer/opt/vim-matchup", url = "https://github.com/andymass/vim-matchup" }, ["vim-polyglot"] = { loaded = true, path = "/home/gro/.local/share/nvim/site/pack/packer/start/vim-polyglot", url = "https://github.com/sheerun/vim-polyglot" }, ["vim-rhubarb"] = { loaded = true, path = "/home/gro/.local/share/nvim/site/pack/packer/start/vim-rhubarb", url = "https://github.com/tpope/vim-rhubarb" }, ["vim-sleuth"] = { loaded = true, path = "/home/gro/.local/share/nvim/site/pack/packer/start/vim-sleuth", url = "https://github.com/tpope/vim-sleuth" }, ["vim-sneak"] = { loaded = true, path = "/home/gro/.local/share/nvim/site/pack/packer/start/vim-sneak", url = "https://github.com/justinmk/vim-sneak" }, ["vim-textobj-parameter"] = { loaded = true, path = "/home/gro/.local/share/nvim/site/pack/packer/start/vim-textobj-parameter", url = "https://github.com/sgur/vim-textobj-parameter" }, ["vim-textobj-user"] = { loaded = true, path = "/home/gro/.local/share/nvim/site/pack/packer/start/vim-textobj-user", url = "https://github.com/kana/vim-textobj-user" }, ["vista.vim"] = { loaded = true, path = "/home/gro/.local/share/nvim/site/pack/packer/start/vista.vim", url = "https://github.com/liuchengxu/vista.vim" }, ["wilder.nvim"] = { config = { "\27LJ\2\nÉ\4\0\0\r\0 \2:6\0\0\0'\2\1\0B\0\2\0029\1\2\0005\3\4\0005\4\3\0=\4\5\3B\1\2\0019\1\6\0'\3\a\0)\4\0\0B\1\3\0019\1\6\0'\3\b\0004\4\3\0009\5\t\0009\a\n\0005\t\v\0009\n\f\0B\n\1\2=\n\r\tB\a\2\0029\b\14\0B\b\1\0A\5\1\0?\5\0\0B\1\3\0019\1\6\0'\3\15\0009\4\16\0005\6\27\0009\a\17\0005\t\19\0009\n\18\0B\n\1\2=\n\20\t5\n\21\0009\v\22\0B\v\1\0?\v\1\0=\n\23\t5\n\24\0009\v\25\0B\v\1\0?\v\1\0=\n\26\tB\a\2\2=\a\28\0069\a\29\0005\t\30\0009\n\18\0B\n\1\2=\n\20\tB\a\2\2=\a\31\6B\4\2\0A\1\1\1K\0\1\0\6/\1\0\0\22wildmenu_renderer\6:\1\0\0\nright\24popupmenu_scrollbar\1\2\0\0\6 \tleft\23popupmenu_devicons\1\2\0\0\6 \16highlighter\1\0\0\24lua_fzy_highlighter\23popupmenu_renderer\17renderer_mux\rrenderer\24vim_search_pipeline\17fuzzy_filter\19lua_fzy_filter\1\0\1\nfuzzy\3\1\21cmdline_pipeline\vbranch\rpipeline\29use_python_remote_plugin\15set_option\nmodes\1\0\0\1\4\0\0\6:\6/\6?\nsetup\vwilder\frequire\3€€À™\4\5€€À™\4\0" }, loaded = true, path = "/home/gro/.local/share/nvim/site/pack/packer/start/wilder.nvim", url = "https://github.com/gelguy/wilder.nvim" } } time([[Defining packer_plugins]], false) -- Config for: guess-indent.nvim time([[Config for guess-indent.nvim]], true) try_loadstring("\27LJ\2\n:\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\17guess-indent\frequire\0", "config", "guess-indent.nvim") time([[Config for guess-indent.nvim]], false) -- Config for: Comment.nvim time([[Config for Comment.nvim]], true) try_loadstring("\27LJ\2\n5\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\fComment\frequire\0", "config", "Comment.nvim") time([[Config for Comment.nvim]], false) -- Config for: trouble.nvim time([[Config for trouble.nvim]], true) try_loadstring("\27LJ\2\n9\0\0\3\0\3\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0004\2\0\0B\0\2\1K\0\1\0\nsetup\ftrouble\frequire\0", "config", "trouble.nvim") time([[Config for trouble.nvim]], false) -- Config for: registers.nvim time([[Config for registers.nvim]], true) try_loadstring("\27LJ\2\n7\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\14registers\frequire\0", "config", "registers.nvim") time([[Config for registers.nvim]], false) -- Config for: wilder.nvim time([[Config for wilder.nvim]], true) try_loadstring("\27LJ\2\nÉ\4\0\0\r\0 \2:6\0\0\0'\2\1\0B\0\2\0029\1\2\0005\3\4\0005\4\3\0=\4\5\3B\1\2\0019\1\6\0'\3\a\0)\4\0\0B\1\3\0019\1\6\0'\3\b\0004\4\3\0009\5\t\0009\a\n\0005\t\v\0009\n\f\0B\n\1\2=\n\r\tB\a\2\0029\b\14\0B\b\1\0A\5\1\0?\5\0\0B\1\3\0019\1\6\0'\3\15\0009\4\16\0005\6\27\0009\a\17\0005\t\19\0009\n\18\0B\n\1\2=\n\20\t5\n\21\0009\v\22\0B\v\1\0?\v\1\0=\n\23\t5\n\24\0009\v\25\0B\v\1\0?\v\1\0=\n\26\tB\a\2\2=\a\28\0069\a\29\0005\t\30\0009\n\18\0B\n\1\2=\n\20\tB\a\2\2=\a\31\6B\4\2\0A\1\1\1K\0\1\0\6/\1\0\0\22wildmenu_renderer\6:\1\0\0\nright\24popupmenu_scrollbar\1\2\0\0\6 \tleft\23popupmenu_devicons\1\2\0\0\6 \16highlighter\1\0\0\24lua_fzy_highlighter\23popupmenu_renderer\17renderer_mux\rrenderer\24vim_search_pipeline\17fuzzy_filter\19lua_fzy_filter\1\0\1\nfuzzy\3\1\21cmdline_pipeline\vbranch\rpipeline\29use_python_remote_plugin\15set_option\nmodes\1\0\0\1\4\0\0\6:\6/\6?\nsetup\vwilder\frequire\3€€À™\4\5€€À™\4\0", "config", "wilder.nvim") time([[Config for wilder.nvim]], false) -- Conditional loads time([[Conditional loading of telescope-fzf-native.nvim]], true) require("packer.load")({"telescope-fzf-native.nvim"}, {}, _G.packer_plugins) time([[Conditional loading of telescope-fzf-native.nvim]], false) -- Load plugins in order defined by `after` time([[Sequenced loading]], true) vim.cmd [[ packadd nvim-treesitter ]] vim.cmd [[ packadd nvim-treesitter-textobjects ]] time([[Sequenced loading]], false) vim.cmd [[augroup packer_load_aucmds]] vim.cmd [[au!]] -- Event lazy-loads time([[Defining lazy-load event autocommands]], true) vim.cmd [[au VimEnter * ++once lua require("packer.load")({'vim-matchup'}, { event = "VimEnter *" }, _G.packer_plugins)]] vim.cmd [[au LspAttach * ++once lua require("packer.load")({'neodim'}, { event = "LspAttach *" }, _G.packer_plugins)]] time([[Defining lazy-load event autocommands]], false) vim.cmd("augroup END") _G._packer.inside_compile = false if _G._packer.needs_bufread == true then vim.cmd("doautocmd BufRead") end _G._packer.needs_bufread = false if should_profile then save_profiles() end end) if not no_errors then error_msg = error_msg:gsub('"', '\\"') vim.api.nvim_command('echohl ErrorMsg | echom "Error in packer_compiled: '..error_msg..'" | echom "Please check your config for correctness" | echohl None') end
salkin-mada commented 1 year ago

Packer has a git setting for that clone_timeout

local packer_settings = {
  git = {
    clone_timeout = 120, -- Timeout, in seconds, for git clones
    -- clone_timeout = false, -- no timeout
  },
}
vim.cmd [[packadd packer.nvim]]
require('packer').init(packer_settings)

before return require('packer').startup({ .... This is one way to do it, Of course there is several ways. Its Lua :)

return require("packer").startup({
  function()
    use "wbthomason/package.nvim"
    use { "honey-monster/yadda.nvim", run = "make install" }
  end,
  config = {
    clone_timeout = 99999
  }
})

If for some reason false does not work, use a ridiculously big timeout integer.