Closed axieax closed 1 year ago
nvim --version
git --version
Set up Packer with a config like the following:
use({ plugin_a, after = plugin_b, }) use(plugin_b)
packer_plugins[plugin_a].url == "https://github.com/" .. plugin_a packer_plugins[plugin_b].url == nil
Note: this behaviour can also be seen in the attached packer_compiled.lua file, specifically with my sequenced plugins "nvim-hlslens", "telescope.nvim" and "onedarkpro.nvim".
packer_compiled.lua
packer_plugins[plugin_a].url == "https://github.com/" .. plugin_a packer_plugins[plugin_b].url == "https://github.com/" .. plugin_b
nvim --version
: v0.6.1git --version
: 2.35.1Steps to reproduce
Set up Packer with a config like the following:
Actual behaviour
Note: this behaviour can also be seen in the attached
packer_compiled.lua
file, specifically with my sequenced plugins "nvim-hlslens", "telescope.nvim" and "onedarkpro.nvim".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 For example with [my config](https://github.com/axieax/dotconfig/blob/main/nvim/lua/axie/plugins/init.lua), the sequenced plugins "nvim-hlslens", "telescope.nvim" and "onedarkpro.nvim" are missing the `url` key in `packer_plugins[plugin_name]`.packer log file
Post the contents of ~/.cache/nvim/packer.nvim.log here [nothing-relevant](https://www.toptal.com/developers/hastebin/yozucawovo.sql)packer compiled file
Post the contents of `packer_compiled.vim` here ```lua -- 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() local time local profile_info local should_profile = true 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 _G._packer = _G._packer or {} _G._packer.profile_output = results end time([[Luarocks path setup]], true) local package_path_str = "/home/axie/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/?.lua;/home/axie/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/?/init.lua;/home/axie/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/?.lua;/home/axie/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/?/init.lua" local install_cpath_pattern = "/home/axie/.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\n§\3\0\1\b\0\18\00006\1\0\0'\3\1\0B\1\2\2+\2\0\0009\3\2\0009\4\2\0019\4\3\4\5\3\4\0X\3\a6\3\0\0'\5\4\0B\3\2\0029\3\5\3B\3\1\2\18\2\3\0X\3\169\3\6\0009\4\6\0019\4\a\4\4\3\4\0X\3\59\3\6\0009\4\6\0019\4\b\4\5\3\4\0X\3\66\3\0\0'\5\4\0B\3\2\0029\3\t\3B\3\1\2\18\2\3\0006\3\0\0'\5\n\0B\3\2\0029\3\v\0035\5\14\0009\6\2\0009\a\2\0019\a\f\a\5\6\a\0X\6\2'\6\r\0X\a\1'\6\15\0=\6\16\5=\2\17\5D\3\2\0\rlocation\bkey\16__multiline\1\0\0\14__default\tline\28calculate_commentstring&ts_context_commentstring.internal\30get_visual_start_location\6V\6v\fcmotion\24get_cursor_location#ts_context_commentstring.utils\nblock\nctype\18Comment.utils\frequirel\1\0\4\0\b\0\v6\0\0\0'\2\1\0B\0\2\0029\0\2\0005\2\4\0005\3\3\0=\3\5\0023\3\6\0=\3\a\2B\0\2\1K\0\1\0\rpre_hook\0\rmappings\1\0\0\1\0\1\rextended\2\nsetup\fComment\frequire\0" }, loaded = true, path = "/home/axie/.local/share/nvim/site/pack/packer/start/Comment.nvim", url = "https://github.com/numToStr/Comment.nvim" }, ["DAPInstall.nvim"] = { loaded = true, path = "/home/axie/.local/share/nvim/site/pack/packer/start/DAPInstall.nvim", url = "https://github.com/Pocco81/DAPInstall.nvim" }, ["FixCursorHold.nvim"] = { loaded = true, path = "/home/axie/.local/share/nvim/site/pack/packer/start/FixCursorHold.nvim", url = "https://github.com/antoinemadec/FixCursorHold.nvim" }, LuaSnip = { loaded = true, path = "/home/axie/.local/share/nvim/site/pack/packer/start/LuaSnip", url = "https://github.com/L3MON4D3/LuaSnip" }, ["aerial.nvim"] = { config = { "\27LJ\2\n¿\1\0\0\4\0\6\0\t6\0\0\0'\2\1\0B\0\2\0029\0\2\0005\2\3\0005\3\4\0=\3\5\2B\0\2\1K\0\1\0\vguides\1\0\2\14last_item\tâ \rmid_item\tâ \1\0\5\16show_guides\2\17manage_folds\1\20close_on_select\2\22highlight_on_jump\3È\1\23highlight_on_hover\2\nsetup\vaerial\frequire\0" }, loaded = true, path = "/home/axie/.local/share/nvim/site/pack/packer/start/aerial.nvim", url = "https://github.com/stevearc/aerial.nvim" }, ["alpha-nvim"] = { config = { "\27LJ\2\nÂ\r\0\0\v\0005\1k6\0\0\0'\2\1\0B\0\2\0029\1\2\0009\1\3\0015\2\5\0=\2\4\0019\1\2\0009\1\6\0014\2\f\0009\3\a\0'\5\b\0'\6\t\0'\a\n\0B\3\4\2>\3\1\0029\3\a\0'\5\v\0'\6\f\0'\a\r\0B\3\4\2>\3\2\0029\3\a\0'\5\14\0'\6\15\0'\a\16\0B\3\4\2>\3\3\0029\3\a\0'\5\17\0'\6\18\0'\a\19\0B\3\4\2>\3\4\0029\3\a\0'\5\20\0'\6\21\0'\a\22\0B\3\4\2>\3\5\0029\3\a\0'\5\23\0'\6\24\0'\a\25\0B\3\4\2>\3\6\0029\3\a\0'\5\26\0'\6\27\0'\a\28\0B\3\4\2>\3\a\0029\3\a\0'\5\29\0'\6\30\0'\a\31\0B\3\4\2>\3\b\0029\3\a\0'\5 \0'\6!\0'\a\"\0B\3\4\2>\3\t\0029\3\a\0'\5#\0'\6$\0'\a%\0B\3\4\2>\3\n\0029\3\a\0'\5&\0'\6'\0'\a(\0B\3\4\0?\3\0\0=\2\4\0016\1\0\0'\3)\0B\1\2\0029\1*\1\18\2\1\0'\4+\0B\2\2\2\21\2\2\0\18\3\1\0'\5,\0B\3\2\2\21\3\3\0009\4\2\0009\4-\0045\0051\0006\6.\0009\6/\6'\b0\0 \t\3\2\18\n\2\0B\6\4\2>\6\1\5=\5\4\0046\4\0\0'\0062\0B\4\2\0029\0043\0049\0064\0B\4\2\1K\0\1\0\vconfig\nsetup\nalpha\1\3\0\0\0$ï https://github.com/axieax/! ï¦ %d plugins (%d loaded)\vformat\vstring\vfooter/~/.local/share/nvim/site/pack/packer/opt/*1~/.local/share/nvim/site/pack/packer/start/*\15glob_split\15axie.utils\16