Missing plugins
#310
-
Hello, with the following config and structure:
lazy.lua -- bootstrap from github
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
vim.fn.system({
"git",
"clone",
"--filter=blob:none",
"--single-branch",
"git@github.com:folke/lazy.nvim.git",
lazypath,
})
end
vim.opt.rtp:prepend(lazypath)
require("lazy").setup("plugins", {
defaults = {
lazy = true, -- lazily load all plugins
version = "*", -- install the latest stable version of plugins
},
install = { missing = true },
ui = {
border = "rounded",
icons = {
loaded = "Y",
not_loaded = "N",
},
},
checker = {
enabled = true,
notify = true,
frequency = 3600,
},
change_detection = {
enabled = true,
notify = true,
},
performance = {
cache = {
enabled = true,
path = vim.fn.stdpath("cache") .. "/lazy/cache",
disable_events = { "VimEnter", "BufReadPre" },
ttl = 3600 * 24 * 5,
},
reset_packpath = true,
rtp = {
reset = true,
disabled_plugins = {
"gzip",
"matchit",
"matchparen",
"netrw",
"netrwPlugin",
"tarPlugin",
"tohtml",
"tutor",
"zipPlugin",
},
},
},
}) and plugin_name.lua (all the same structure): return {
"nvim-lualine/lualine.nvim",
event = "VeryLazy",
config = ...
} I kept missing some plugins (not installed), and lazy.nvim didn't pop up for installation during the startup. |
Beta Was this translation helpful? Give feedback.
Answered by
ghost
Jan 4, 2023
Replies: 1 comment
-
Ok, it seems that I was directly passing the opts config table to replace config = function()
require("plugin").setup(opts)
end fixed the issue. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ok, it seems that I was directly passing the opts config table to replace
require("plugin").setup(opts)
(from the readme). Changing back tofixed the issue.