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

Enable treesitter folding for Python and Lua

This commit is contained in:
jdhao 2024-05-07 21:38:06 +02:00
parent 2f8482639d
commit e462ebcbcc
2 changed files with 8 additions and 0 deletions

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()

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()