a bit better folding

This commit is contained in:
Osman Faruk Bayram 2025-08-11 23:51:09 +03:00
parent 5a5d5e3945
commit 3b0fc7da4d

View file

@ -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 = "";
};
};
}