Config for folding

This commit is contained in:
David Francis 2023-06-27 12:46:55 +01:00
parent 503a6e9e74
commit ae96b4bc40
1 changed files with 6 additions and 0 deletions

View File

@ -227,6 +227,12 @@ vim.o.termguicolors = true
vim.o.scrolloff = 8
-- Folding with treesitter
vim.o.foldmethod = 'expr'
vim.o.foldexpr = 'nvim_treesitter#foldexpr()'
vim.o.foldenable = false -- start with all folds open
vim.o.foldlevel = 99
-- [[ Basic Keymaps ]]
-- Keymaps for better default experience