Skip to content

Conversation

@rwmpelstilzchen
Copy link

packer.nvim is unmaintained since 2023-08. On the readme they cite lazy.nvim as a recommended alternative. I used GitHub’s <details> tag to avoid clutter. The code was taken from here.

packer.nvim is unmaintained.
@kevinhwang91
Copy link
Owner

need lazy.nvim user feedback

@rwmpelstilzchen
Copy link
Author

rwmpelstilzchen commented Aug 19, 2024

I can testify it works for me (a LazyVim user), but I understand you wait for independent corroboration. Fair enough; let’s hope someone will land on this issue and add a comment… 🙂

vim.o.foldlevel = 99
vim.o.foldlevelstart = 99
end,
config = function()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would prefer opts rather than config see: https://lazy.folke.io/spec#spec-setup

@RianFuro
Copy link

Hey, just set up ufo with the instructions for lazy.nvim from this PR. Works out of the box for me, just copied and pasted them into my config :)

I agree with the recommended changes though, opts is the canonical way to setup if you don't need any logic. Usually, plugins have something like the following in their example (in fact, I have that exact comment 3 times in my config currently):

    opts = {
      -- your configuration comes here
      -- or leave it empty to use the default settings
      -- refer to the configuration section below
    },

@Kennedy242
Copy link

I'd be interested to see this get updated

@maatthc
Copy link

maatthc commented Mar 15, 2025

Both config/opts work for me.
Opts looks cleaner tho:

{
	"kevinhwang91/nvim-ufo",
	event = "VeryLazy",
	dependencies = {
		"kevinhwang91/promise-async",
	},
	opts = {
		provider_selector = function()
			return { "lsp", "indent" }
		end,
	},
}

But zi only works if I do zM beforehand. za works okay. Is that expected.

@RayGuo-ergou
Copy link
Contributor

You can add 'zi' in 'keys'.

@ctranstrum
Copy link

Works for me as well.

@TheeStickmahn
Copy link

Works wonderfully.

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

Successfully merging this pull request may close these issues.

8 participants