-
Notifications
You must be signed in to change notification settings - Fork 15
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
fix: load plugin/ in autocmds before 'loadplugins' #46
Conversation
51fc627
to
9881ba7
Compare
5416a69
to
cba3d33
Compare
cba3d33
to
a59b262
Compare
This change breaks plugins that are configured via global variables. Now pckr.nvim must be loaded after the global variables are set. |
Sorry I don't understand. I load pckr before |
Sorry, it seems that the breakage I observed came from something else. |
Ok. Do you have any more details? |
Hmm, it seems that the behavior of pckr.nvim hasn't changed, but I somehow just noticed that pckr.nvim loads |
Only if run pckr after initialisation, otherwise when else would you load |
Hmm, it seems to do that in local function bootstrap_pckr()
local pckr_path = vim.fn.stdpath("data") .. "/pckr/pckr.nvim"
if not (vim.uv or vim.loop).fs_stat(pckr_path) then
vim.fn.system({
'git',
'clone',
"--filter=blob:none",
'https://github.com/lewis6991/pckr.nvim',
pckr_path
})
end
vim.opt.rtp:prepend(pckr_path)
end
bootstrap_pckr()
print(vim.g.undotree_DiffCommand)
require('pckr').add{
{ 'mbbill/undotree', start = true },
}
print(vim.g.undotree_DiffCommand) It prints:
which means calling |
Looks like a bug with |
This behaviour is caused by I implemented a custom Need to re-assess if it is still necessary. #49 |
No description provided.