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

Using Plug command in a $XDG_CONFIG_HOME/nvim/plugin file is not working #1180

Open
3 of 11 tasks
neur1n opened this issue May 11, 2022 · 0 comments
Open
3 of 11 tasks

Comments

@neur1n
Copy link

neur1n commented May 11, 2022

Explain the problem here ...

I have a file, $XDG_CONFIG_HOME/nvim/plugin/n_plug.vim, which contains the call plug#begin(), Plug 'some/plugin', call plug#end() lines. Such configurations made all the listed plugins loaded when they were in init.vim, but not in the n_plug.vim file. It seems that I can use Plug 'some/plugin', {'on': []} and call plug#load('plugin') to make a plugin loaded, but I don't understand why the addtional call plug#load() is needed. I've also tried to debug vim-plug but couldn't found the reason.

NVIM v0.7.0
Build type: RelWithDebInfo
LuaJIT 2.1.0-beta3
Compiled by runneradmin@fv-az320-113

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

   system vimrc file: "$VIM\sysinit.vim"
  fall-back for $VIM: "C:/Program Files/nvim/share/nvim"
  • Type:
    • Bug
    • Enhancement
    • Feature Request
    • Question
  • OS:
    • All/Other
    • Linux
    • OS X
    • Windows
  • Vim:
    • Terminal Vim
    • GVim
    • Neovim
@neur1n neur1n changed the title Using Plug command in $XDG_CONFIG_HOME/plugin file is not working Using Plug command in a $XDG_CONFIG_HOME/nvim/plugin file is not working May 11, 2022
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

1 participant