mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-06 21:40:03 -04:00
feat: provide a statusline indicator
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
This commit is contained in:
parent
5cc7407c7f
commit
7682a1a49f
3 changed files with 36 additions and 1 deletions
3
autoload/nvim_treesitter.vim
Normal file
3
autoload/nvim_treesitter.vim
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
function! nvim_treesitter#statusline(len)
|
||||
return luaeval("require'nvim-treesitter'.statusline(_A)", a:len)
|
||||
endfunction
|
||||
Loading…
Add table
Add a link
Reference in a new issue