From 3b0fc7da4ddd32f70b4743d53e8778eeb148e019 Mon Sep 17 00:00:00 2001 From: osbm Date: Mon, 11 Aug 2025 23:51:09 +0300 Subject: [PATCH] a bit better folding --- config/options.nix | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/config/options.nix b/config/options.nix index 1c33d6f..d0a1a70 100644 --- a/config/options.nix +++ b/config/options.nix @@ -19,5 +19,33 @@ autoindent = true; # Do clever autoindenting # TODO: i want to see 4 spaces when i press tab in python and 2 spaces in nix using setlocal # is it possible for me to set this per language? + + + # folding + foldmethod = "expr"; + foldexpr = "nvim_treesitter#foldexpr()"; + foldlevel = 99; # Folds with a level higher than this number will be closed + foldcolumn = "1"; + foldenable = true; + foldlevelstart = -1; + fillchars = { + horiz = "━"; + horizup = "┻"; + horizdown = "┳"; + vert = "┃"; + vertleft = "┫"; + vertright = "┣"; + verthoriz = "╋"; + + eob = " "; + diff = "╱"; + + fold = " "; + foldopen = ""; + foldclose = ""; + + msgsep = "‾"; + }; + }; }