Nix code folding in Neovim

I’ve never used code folding in Neovim. Do we have code folding for Nix in Neovim right now? I looked around and couldn’t find anything. zf in a buffer with Nix in it doesn’t seem to do anything.

I don’t know if there is anything Nix-specific, but you can use treesitter or something like nvim-ufo which offers other folding providers as well.

1 Like