mirror of
https://github.com/chenasraf/nvim-treesitter.git
synced 2026-05-17 17:38:02 +00:00
It will show the current branch at the cursor going the tree as such. root->node->subnode->leaf If an argument is provided to `statusline`, then the tree will be truncated as follows : ..->subnode->subnode
4 lines
121 B
VimL
4 lines
121 B
VimL
function! nvim_treesitter#statusline(len)
|
|
return luaeval("require'nvim-treesitter'.statusline(_A)", a:len)
|
|
endfunction
|