@@ -46,3 +46,8 @@ vim.o.inccommand = 'split'
-- disable mouse support
vim.o.mouse = false
+
+-- set foldexpr to use treesitter
+vim.o.foldmethod = 'expr'
+vim.o.foldexpr = 'nvim_treesitter#foldexpr()'
+vim.o.foldenable = false