mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04: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
3 lines
121 B
VimL
3 lines
121 B
VimL
function! nvim_treesitter#statusline(len)
|
|
return luaeval("require'nvim-treesitter'.statusline(_A)", a:len)
|
|
endfunction
|