Closed glyh closed 2 years ago
Packer removes the .git
from the url if present. Because www[.git]hub
has .git
packer removes it. Also there is no need for www
with an https
url.
Why would you do that? What if there's a git repo named abc.git
?
The git url contains information on the protocol. https://github.com/user/repo
and https://github.com/user/repo.git
are equivalent. See git docs for more information.
OK, I got it.
nvim --version
:NVIM v0.8.0-dev-699-gcbfae548e
git --version
:git version 2.37.2
Linux archlinux 5.19.2-zen1-1-zen #1 ZEN SMP PREEMPT_DYNAMIC Wed, 17 Aug 2022 14:28:00 +0000 x86_64 GNU/Linux
alacritty 0.10.1 ()
Steps to reproduce
Actual behaviour
Got urls like
https://wwwhub.com/Olical/conjure
.Expected behaviour
The correct URL.
packer files
Plugin specification file(s)
Post or link your plugin specification files here, if you aren't able to provide a minimal reproducer ```lua -- this template is borrowed from nvim-lspconfig local on_windows = vim.loop.os_uname().version:match("Windows") local function join_paths(...) local path_sep = on_windows and "\\" or "/" local result = table.concat({ ... }, path_sep) return result end vim.cmd([[set runtimepath=$VIMRUNTIME]]) local temp_dir if on_windows then temp_dir = vim.loop.os_getenv("TEMP") else temp_dir = "/tmp" end vim.cmd("set packpath=" .. join_paths(temp_dir, "nvim", "site")) local package_root = join_paths(temp_dir, "nvim", "site", "pack") local install_path = join_paths(package_root, "packer", "start", "packer.nvim") local compile_path = join_paths(install_path, "plugin", "packer_compiled.lua") local function load_plugins() -- only add other plugins if they are necessary to reproduce the issue require("packer").startup({ { "wbthomason/packer.nvim", {"Olical/conjure", branch = 'develop'}, }, config = { package_root = package_root, compile_path = compile_path, git = { default_url_format = 'https://www.github.com/%s' } }, }) end if vim.fn.isdirectory(install_path) == 0 then vim.fn.system({ "git", "clone", 'https://www.github.com/wbthomason/packer.nvim', install_path }) end load_plugins() -- require("packer").sync() vim.cmd([[ set completeopt=menu,menuone,noselect]]) ```packer log file
Post the contents of ~/.cache/nvim/packer.nvim.log here ```lua [ERROR Sat 13 Aug 2022 01:38:50 PM CST 41112459909] .../site/pack/packer/start/packer.nvim/lua/packer/async.lua:20: Error in coroutine: ...ack/packer/start/packer.nvim/lua/packer/plugin_utils.lua:236: Vim:E492: Not an editor command: TSUpdate [WARN Sat 13 Aug 2022 03:49:23 PM PDT 36140274632120] ...ite/pack/packer/start/packer.nvim/lua/packer/display.lua:566: Potential breaking change in commit 7cc44a4 of L3MON4D3/LuaSnip [WARN Sat 13 Aug 2022 03:49:23 PM PDT 36140274672070] ...ite/pack/packer/start/packer.nvim/lua/packer/display.lua:566: Potential breaking change in commit 48a79b7 of L3MON4D3/LuaSnip [WARN Sat 13 Aug 2022 03:49:23 PM PDT 36140274696025] ...ite/pack/packer/start/packer.nvim/lua/packer/display.lua:566: Potential breaking change in commit dddd655 of L3MON4D3/LuaSnip [WARN Tue 16 Aug 2022 04:58:00 PM PDT 23186349480229] ...ite/pack/packer/start/packer.nvim/lua/packer/display.lua:566: Potential breaking change in commit a75339b of wbthomason/packer.nvim [WARN Tue 16 Aug 2022 04:58:21 PM PDT 23206995320271] ...ite/pack/packer/start/packer.nvim/lua/packer/display.lua:566: Potential breaking change in commit a75339b of wbthomason/packer.nvim [WARN Wed 17 Aug 2022 10:21:18 PM PDT 61389241358211] ...ite/pack/packer/start/packer.nvim/lua/packer/display.lua:566: Potential breaking change in commit 0585c11 of L3MON4D3/LuaSnip [WARN Sat 20 Aug 2022 08:38:24 AM PDT 6054243847364] ...ite/pack/packer/start/packer.nvim/lua/packer/display.lua:566: Potential breaking change in commit 8de637a of williamboman/mason.nvim ```packer compiled file
Post the contents of `packer_compiled.vim` here I don't find it, `~/.config/nvim/plugin/packer_compiled.lua` is for my main config, but not for the test config.