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 searched the exsiting issues of the plugin I have a problem with
Neovim version (nvim -v)
NVIM v0.9.0-dev+519-g2d8bbe468
Operating system/version
Fedora 36
Describe the bug
lazy tries to load plugins that aren't installed (when automatic installation is disabled or there's no internet)
Steps To Reproduce
nvim -u repro.lua
Failed to run `config` for which-key.nvim
/tmp/repro.lua:30: module 'which-key' not found:
Expected Behavior
no errors, config function should not be called when the plugin is not installed
Repro
-- DO NOT change the paths and don't remove the colorschemelocalroot=vim.fn.fnamemodify("./.repro", ":p")
-- set stdpaths to use .reprofor_, nameinipairs({ "config", "data", "state", "cache" }) dovim.env[("XDG_%s_HOME"):format(name:upper())] =root.."/" ..nameend-- bootstrap lazylocallazypath=root.."/plugins/lazy.nvim"ifnotvim.loop.fs_stat(lazypath) thenvim.fn.system({
"git",
"clone",
"--filter=blob:none",
"--single-branch",
"https://github.com/folke/lazy.nvim.git",
lazypath,
})
endvim.opt.runtimepath:prepend(lazypath)
-- install pluginslocalplugins= {
"folke/tokyonight.nvim",
{
"folke/which-key.nvim",
-- should not be called when the plugin is not installedconfig=function()
require("which-key")
end,
},
-- add any other plugins here
}
require("lazy").setup(plugins, {
root=root.."/plugins",
install= {
missing=false,
},
})
vim.cmd.colorscheme("habamax")
pcall(function()
vim.cmd.colorscheme("tokyonight")
end)
The text was updated successfully, but these errors were encountered:
Did you check docs and existing issues?
Neovim version (nvim -v)
NVIM v0.9.0-dev+519-g2d8bbe468
Operating system/version
Fedora 36
Describe the bug
lazy tries to load plugins that aren't installed (when automatic installation is disabled or there's no internet)
Steps To Reproduce
Expected Behavior
no errors, config function should not be called when the plugin is not installed
Repro
The text was updated successfully, but these errors were encountered: