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

Feature: specify plugin path in git repo #1111

Closed RubixDev closed 1 year ago

RubixDev commented 1 year ago

Describe the feature

I would like it to be possible to specify a path to where a plugin is located inside a git repository. I'd suggest a location key for the use function like this:

use {
    'username/repo',
    location = 'plugins/myplugin',
}
EdenEast commented 1 year ago

This already exists. You are looking for rtp.

 rtp = string,                -- Specifies a subdirectory of the plugin to add to runtimepath.
RubixDev commented 1 year ago

Oh, thanks, I somehow overlooked that.