nvim: fold code with tree-sitter

This commit is contained in:
dogeystamp 2023-01-22 15:40:46 -05:00
parent e2006c5c8e
commit f8f905243d
Signed by: dogeystamp
GPG Key ID: 7225FE3592EFFA38

View File

@ -138,3 +138,8 @@ require'nvim-treesitter.configs'.setup {
},
}
EOF
" Code folding
set foldmethod=expr
set foldexpr=nvim_treesitter#foldexpr()
autocmd BufEnter * normal zR