1
0
mirror of https://github.com/jdhao/nvim-config.git synced 2025-06-08 14:14:33 +02:00

add nvim-ufo for folding

This commit is contained in:
martin
2024-01-19 15:44:08 +08:00
parent 8416508686
commit 90a0645d42
3 changed files with 24 additions and 6 deletions

View File

@@ -1,6 +1,2 @@
" let the initial folding state be that all folds are closed.
set foldlevel=0
" Use nvim-treesitter for folding
set foldmethod=expr
set foldexpr=nvim_treesitter#foldexpr()
setlocal foldlevel=0