mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-07 05:50:04 -04:00
feat: add syntax-based folding
This commit is contained in:
parent
d1da10ce1c
commit
fbade728fe
2 changed files with 33 additions and 0 deletions
|
|
@ -1,3 +1,7 @@
|
|||
function! nvim_treesitter#statusline(len)
|
||||
return luaeval("require'nvim-treesitter'.statusline(_A)", a:len)
|
||||
endfunction
|
||||
|
||||
function! nvim_treesitter#foldexpr()
|
||||
return luaeval(printf('require"nvim-treesitter.fold".get_fold_indic(%d)', v:lnum))
|
||||
endfunction
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue