enable folding

This commit is contained in:
Reathe 2026-02-25 21:33:17 +01:00
parent 4891019be7
commit a0165a008c
1 changed files with 7 additions and 0 deletions

View File

@ -198,6 +198,13 @@ vim.o.scrolloff = 10
-- See `:help 'confirm'`
vim.o.confirm = true
-- Set folding to use Treesitter
vim.o.foldmethod = 'expr'
vim.o.foldexpr = 'v:lua.vim.treesitter.foldexpr()'
-- Prevent everything from being folded when you open a file
vim.o.foldlevelstart = 99
-- [[ Basic Keymaps ]]
-- See `:help vim.keymap.set()`