opts and config
#370
-
|
Hi! Take a look on this two rows: As I understand, when the 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",
"[email protected]:folke/lazy.nvim.git",
lazypath,
})
end
vim.opt.rtp:prepend(lazypath)
require("lazy").setup({ -- Catppuccin
{
'catppuccin/nvim',
config = function(opts)
print(vim.inspect(opts))
require('catppuccin').setup(opts)
vim.cmd.colorscheme 'catppuccin'
end,
lazy = false,
name = 'catppuccin',
opts = {
flavour = 'latte',
},
priority = 1000,
},
})I thought that { "catppuccin/nvim",
_ = {
installed = true,
loaded = {
start = "start"
}
},
config = <function 1>,
dir = "/home/.../.local/share/nvim/lazy/catppuccin",
lazy = false,
name = "catppuccin",
opts = {
flavour = "latte"
},
priority = 1000,
url = "https://github.com/catppuccin/nvim.git"
}Am I wrong and just misunderstood the docs? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
The first parameter is So change your function to: config = function(_, opts)
endBut then again, I do realize that |
Beta Was this translation helpful? Give feedback.

The first parameter is
plugin, as you can see in the screenshot.So change your function to:
But then again, I do realize that
optsandconfigis probably a bit confusing right now. So I will see to update the docs to clarify that a bit