From 70355c501179e43e29b2364deb39f64b9c34944d Mon Sep 17 00:00:00 2001 From: Jan Grosser Date: Sat, 22 Jun 2024 22:57:13 +0200 Subject: [PATCH] Basic folding using builtin foldmethod Basic folding using builtin folding. Howto: https://andrewcourter.substack.com/p/code-folding-in-neovim However, the folding does not work properly. I could not get nvim-ufo to work yet. --- modules/home-manager/neovim.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/modules/home-manager/neovim.nix b/modules/home-manager/neovim.nix index 1593017..6027376 100644 --- a/modules/home-manager/neovim.nix +++ b/modules/home-manager/neovim.nix @@ -416,6 +416,13 @@ set mouse= + """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" + " => Folding + """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" + set foldmethod=indent + " Unfold all when opening a file + set foldlevel=99 + """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " => Folding with nvim-ufo """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""