Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails when plugins are absorbed (via git submodule absorbgitdirs) #866

Open
5 of 11 tasks
rwe opened this issue Aug 7, 2019 · 1 comment
Open
5 of 11 tasks

Fails when plugins are absorbed (via git submodule absorbgitdirs) #866

rwe opened this issue Aug 7, 2019 · 1 comment

Comments

@rwe
Copy link

rwe commented Aug 7, 2019

If your ~/.vim/plugged or similar is contained in another repo (for example, a dotfiles repo); and you've added the plugins as submodules in order to track their updates in that repo; then you may want to use git submodule absorbgitdirs.

If you do that, Vim-Plug will break because absorbgitdirs replaces the .git/ directory with a flat file containing a path like ../../.git/modules/some-plugin/, but Vim-Plug explicitly references a folder in the command git config -f .git/config remote.origin.url.

The existing pull request #858 would fix this, among the other issues it would fix (#470, #834). This issue is opened in support of that PR, and as a record for other troubleshooters.


NVIM v0.3.8
Build type: Release
LuaJIT 2.0.5
Compilation: /usr/local/Homebrew/Library/Homebrew/shims/mac/super/clang -Wconversion -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -DNDEBUG -DMIN_LOG_LEVEL=3 -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wimplicit-
fallthrough -Wvla -fstack-protector-strong -fdiagnostics-color=auto -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -I/tmp/neovim-20190704-11886-1ukicoc/neovim-0.3.8/build/config -I/tmp/
neovim-20190704-11886-1ukicoc/neovim-0.3.8/src -I/usr/local/include -I/usr/local/opt/gettext/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/tmp/neovim-20190704-
11886-1ukicoc/neovim-0.3.8/build/src/nvim/auto -I/tmp/neovim-20190704-11886-1ukicoc/neovim-0.3.8/build/include
Compiled by [email protected]

Features: +acl +iconv +jemalloc +tui
See ":help feature-compile"

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/usr/local/Cellar/neovim/0.3.8/share/nvim"

Run :checkhealth for more info
  • Type:
    • Bug
    • Enhancement
    • Feature Request
    • Question
  • OS:
    • All/Other
    • Linux
    • OS X
    • Windows
  • Vim:
    • Terminal Vim
    • GVim
    • Neovim
@kxxdhdn
Copy link

kxxdhdn commented Nov 13, 2022

I use stow + Github to synchronize my dotfiles. The .vim/plugged/ is thus inside a git repo and the vim command PlugInstall fails to resolve the Github url. I install plugins with git submodule add under this directory and later it works fine with both PlugUpdate in vim and git submodule update for git.
Just a question: how can we modify the vim-plug script to auto select git clone or git submodule add for PlugInstall command? Thanks for your attention.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants