Closed ckt114 closed 1 year ago
@ckt114 this is outdated syntax that is not in the v3 release. If you found this in the documentation somewhere please let me know so I can update it but I think I got all of it updated everywhere. Check the user_example
that was released with the official stable release of v3 (https://github.com/AstroNvim/user_example) to see the most up to date syntax or follow the migration guide.
@mehalter That user_example is where I get the syntax from. See this: https://github.com/AstroNvim/user_example/blob/main/plugins/core.lua#L68-L69
How do I set additional configs? Do I just do like below?
config = function(plugin, opts)
-- my settings go here?
end
OR
config = {
-- my settings go here?
}
ah thank you for pointing this out! I have fixed this in the latest commit: https://github.com/AstroNvim/user_example/blob/main/plugins/core.lua#L68-L69
@ckt114 just a heads up, I transferred this issue to the relevant repository and fixed the issue :)
Fixed with 821aa73190976814d57b63171d9288c58575fdd8
Checklist
:PackerSync
:AstroUpdate
Operating system/version
13.2.1
Terminal/GUI
wezterm
AstroNvim Health
Describe the bug
Calling
plugin.default_config(opts)
in a plugin throws nil value error.Steps to Reproduce
File:
plugins/treesitter.lua
Expected behavior
Should not throw error.
Screenshots
Additional Context
No response