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 262 forks source link

packadd cmd doesn't find packer even though it's in correct &packpath #1087

Closed craigmac closed 1 year ago

craigmac commented 1 year ago

Docs in README say:

To get started, first clone this repository to somewhere on your packpath

Steps to reproduce

cd ~/.config/nvim
mkdir -p pack/packer/{start,opt}
cd pack/packer/opt
git clone --depth 1 https://github.com/wbthomason/packer.nvim packer.nvim
nvim -u NORC
:packadd <tab>

Even if you clone it to the pack/packer/start/ directory. I don't see it being read from the :scriptnames output.

Actual behaviour

Cannot :packadd when in pack//opt and cannot use any :Pack.. commands when cloned to pack//start as well.

Output of rtp:

/Users/cmaceach/.config/nvim,/etc/xdg/nvim,/Users/cmaceach/.config/local/share/nvim/site,/usr/local/share/nvim/site,/usr/share/nvim/site,/usr/local/share/nvim/runtime,/usr/local/lib/nvim,/usr/share/nvim/site/after,/usr/local/share/nvim/site/after,/Users/cmaceach/.config/local/share/nvim/site/after,/etc/xdg/nvim/after,/Users/cmaceach/.config/nvim/after

Expected behaviour

Load packer via typical :packadd packer.nvim and use it's commands