You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
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 usePlug 'some/plugin', {'on': []}
andcall plug#load('plugin')
to make a plugin loaded, but I don't understand why the addtionalcall plug#load()
is needed. I've also tried to debug vim-plug but couldn't found the reason.The text was updated successfully, but these errors were encountered: