default to treesitter foldexpr

This commit is contained in:
Alexander Gehrke 2024-04-11 20:03:52 +02:00
parent b1e951ef1d
commit 0563865360
2 changed files with 3 additions and 5 deletions

View file

@ -38,7 +38,9 @@ vim.opt.whichwrap = "b,s,<,>,[,],h,l"
vim.opt.timeout = false vim.opt.timeout = false
vim.opt.foldenable = false vim.opt.foldmethod = "expr"
vim.opt.foldlevel = 99
vim.opt.foldexpr = "nvim_treesitter#foldexpr()"
vim.opt.diffopt:append("vertical") vim.opt.diffopt:append("vertical")
vim.opt.diffopt:append("linematch:50") vim.opt.diffopt:append("linematch:50")

View file

@ -30,8 +30,4 @@ return {
}, },
}, },
}, },
init = function()
-- If you want the formatexpr, here is the place to set it
vim.o.formatexpr = "v:lua.require'conform'.formatexpr()"
end,
} }