Enable treesitter folding for Python and Lua

This commit is contained in:
jdhao
2024-05-08 03:46:45 +08:00
parent 2f8482639d
commit e462ebcbcc
2 changed files with 8 additions and 0 deletions
+4
View File
@@ -6,3 +6,7 @@ nnoremap <buffer><silent> <F9> :luafile %<CR>
" For delimitMate
let b:delimitMate_matchpairs = "(:),[:],{:}"
" Use nvim-treesitter for folding
set foldmethod=expr
set foldexpr=nvim_treesitter#foldexpr()
+4
View File
@@ -15,3 +15,7 @@ set expandtab " expand tab to spaces so that tabs are spaces
" For delimitMate
let b:delimitMate_matchpairs = "(:),[:],{:}"
" Use nvim-treesitter for folding
set foldmethod=expr
set foldexpr=nvim_treesitter#foldexpr()