Skip to content

Add installation instructions with lazy.nvim#245

Open
rwmpelstilzchen wants to merge 1 commit into
kevinhwang91:mainfrom
rwmpelstilzchen:installation-instructions
Open

Add installation instructions with lazy.nvim#245
rwmpelstilzchen wants to merge 1 commit into
kevinhwang91:mainfrom
rwmpelstilzchen:installation-instructions

Conversation

@rwmpelstilzchen

Copy link
Copy Markdown

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
Copy Markdown
Owner

need lazy.nvim user feedback

@rwmpelstilzchen

rwmpelstilzchen commented Aug 19, 2024

Copy link
Copy Markdown
Author

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… 🙂

Comment thread README.md
vim.o.foldlevel = 99
vim.o.foldlevelstart = 99
end,
config = function()

Copy link
Copy Markdown
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
Copy Markdown

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
Copy Markdown

I'd be interested to see this get updated

@maatthc

maatthc commented Mar 15, 2025

Copy link
Copy Markdown

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
Copy Markdown
Contributor

You can add 'zi' in 'keys'.

@ctranstrum

Copy link
Copy Markdown

Works for me as well.

@TheeStickmahn

Copy link
Copy Markdown

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