From 76cf1717b98559e8b2f02e878a9e77365a23b7ab Mon Sep 17 00:00:00 2001 From: osbm Date: Wed, 25 Jun 2025 09:09:42 +0300 Subject: [PATCH] folds --- config/options.nix | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/config/options.nix b/config/options.nix index 1c33d6f..35c0166 100644 --- a/config/options.nix +++ b/config/options.nix @@ -19,5 +19,31 @@ 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 + foldlevel = 99; # Folds with a level higher than this number will be closed + # foldcolumn = "1"; + foldenable = true; + # foldlevelstart = -1; + foldmethod = "expr"; + foldexpr = "nvim_treesitter#foldexpr()"; + # fillchars = { + # horiz = "━"; + # horizup = "┻"; + # horizdown = "┳"; + # vert = "┃"; + # vertleft = "┫"; + # vertright = "┣"; + # verthoriz = "╋"; + # + # eob = " "; + # diff = "╱"; + # + # fold = " "; + # foldopen = ""; + # foldclose = ""; + # + # msgsep = "‾"; + # }; }; }