nvim: fold code with tree-sitter
This commit is contained in:
parent
e2006c5c8e
commit
f8f905243d
@ -138,3 +138,8 @@ require'nvim-treesitter.configs'.setup {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
" Code folding
|
||||||
|
set foldmethod=expr
|
||||||
|
set foldexpr=nvim_treesitter#foldexpr()
|
||||||
|
autocmd BufEnter * normal zR
|
||||||
|
Loading…
Reference in New Issue
Block a user