Changed the defualt fold level to fold from ## when opeining a file.

This commit is contained in:
Héctor T 2026-04-08 14:30:36 -06:00
parent 29497a5a6f
commit 81408e79d2

View file

@ -22,7 +22,7 @@ vim.api.nvim_create_autocmd("FileType", {
callback = function()
vim.wo.foldmethod = "expr"
vim.wo.foldexpr = "v:lua.vim.treesitter.foldexpr()" -- This is the magic line
vim.wo.foldlevel = 2 -- tweak if you want deeper levels open by default
vim.wo.foldlevel = 1 -- tweak if you want deeper levels open by default
vim.wo.foldcolumn = "1"
vim.wo.spell = true
vim.bo.spelllang = "en_us"