Kevin Hwang
Kevin Hwang
It's similar to https://github.com/kevinhwang91/nvim-ufo/issues/22. Two steps: 1. Need to write a `marker` provider, you can refer to [indent.lua](https://github.com/kevinhwang91/nvim-ufo/blob/9d59d713c484d90790f53045a5b4685fb0686ff6/lua/ufo/provider/indent.lua). TBH, it's not hard, just scan content and parse `foldmarker`, use a...
ufo should be compatible with older nvim version, and nightly is not a stable version, should wait for the official release. FYI: https://launchpad.net/~neovim-ppa/+archive/ubuntu/stable
> This was my solution to this problem. it is not perfect, but it works well enough for my needs. > > ``` > { > "kevinhwang91/nvim-ufo", > event =...
> I just noticed nightly neovim crashes with ufo when treesitter is used to figure out folding. I wonder if all this could be related (didn't investigate yet)...? https://github.com/kevinhwang91/nvim-ufo/commit/e29dbf5b2d76ea43f4e585e3deeb6510488eee3f
~~vim.b.ufo_foldlevel~~ -> `vim.w.ufo_foldlevel` Have you encountered any performance issues by customizing yourself? IMO, the built-in `zr` and `zm` behaviors are not good workflow. Maybe enhance ufo to preview the folded/unfolded...
Have you understood the comment https://github.com/kevinhwang91/nvim-ufo/issues/62#issuecomment-1207198496 ?
> Here is the code I'm trying to get working currently: > > ```lua > -- return the max fold level of the buffer (for now doing the opposite and...
> So, is there a particular reason this solution cannot be integrated in the `nvim-ufo`'s code? Are you not satisfied with the said lack of "elegance" or the potential of...
1. Set keymap with desc requires a higher Neovim version; 2. I don't use descriptions for keymaps; However, PR is welcome.