I added the directory in init.vim as
Plug '~/Documents/Projects/vim-test'
and ran :PlugInstall but it is not loading the plugin.
Folder structure is like a vim plugin structure
.
โโโ LICENSE
โโโ README.md
โโโ ftdetect
โย ย โโโ test.vim
โโโ syntax
ย โโโ test.vim
NVIM v0.2.1-237-gf4fddbfb7
Build type: RelWithDebInfo
Compilation: /usr/local/Homebrew/Library/Homebrew/shims/super/clang -Wconversion -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -DNVIM_MSGPACK_HAS_FLOAT32 -O2 -g -DDISABLE_LOG -Wall -Wextr
a -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wimplicit-fallthrough -Wvla -fstack-protector-strong -fdiagnostics-color=auto -DINCLUDE_GENERATED_DECLARATIONS -I
/tmp/neovim-20170525-84454-1l1qpk/build/config -I/tmp/neovim-20170525-84454-1l1qpk/src -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/l
ocal/include -I/usr/local/include -I/usr/local/opt/gettext/include -I/usr/include -I/usr/include -I/tmp/neovim-20170525-84454-1l1qpk/build/src/nvim/auto -I/tmp/neovim-20170525-844
54-1l1qpk/build/include
Compiled by [email protected]
Optional features included (+) or not (-): +acl +iconv +jemalloc +tui
For differences from Vim, see :help vim-differences
system vimrc file: "$VIM/sysinit.vim"
fall-back for $VIM: "/usr/local/Cellar/neovim/HEAD-f4fddbf/share/nvim"
vim-plug can load the plugin directly from the directory without copying it, so there's no installation. If you do want it to be copied, you can write it in absolute path with file:// prefix.
Plug 'file:///Users/jg/foo/bar'
" or if you don't want to hard-code home directory
Plug 'file://'.expand('~/foo/bar')
This no longer works.
It works fine so far:
call plug#begin('~/.local/share/nvim/plugged')
" work fine
Plug 'file://'.expand('~/.local/share/nvim/plugged/my_plug')
" not work!!!
Plug 'file://'.expand('~/dev_pluggins/my_plug')
call plug#end()
Most helpful comment
vim-plug can load the plugin directly from the directory without copying it, so there's no installation. If you do want it to be copied, you can write it in absolute path with
file://prefix.