Skip to content
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

feat request: support for lazy.nvim opts{} table #705

Open
onexbash opened this issue Dec 3, 2024 · 0 comments
Open

feat request: support for lazy.nvim opts{} table #705

onexbash opened this issue Dec 3, 2024 · 0 comments

Comments

@onexbash
Copy link

onexbash commented Dec 3, 2024

Hi together,
are you planning to support the lazy.nvim opts{} table to give users the chance of following the best practice to not call setup({}) in a config() function?

It should be easy to implement, because lazy automatically calls the setup function and merges the opts table into it, if one exists.
I would offer to implement these changes myself via PR, but only if you are not against it.

This error is thrown right now when using opts{}:

Lua module not found for config of markdown-preview.nvim. Please use a `config()` function instead
return {
	"iamcco/markdown-preview.nvim",
	cmd = { "MarkdownPreviewToggle", "MarkdownPreview", "MarkdownPreviewStop" },
	ft = { "markdown" },
	build = function()
		vim.fn["mkdp#util#install"]()
	end,
	opts = {
		mkdp_auto_start = 1,
	},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant