From 7682a1a49f7c3be58df18dfc18ad3ba65dd3be1f Mon Sep 17 00:00:00 2001 From: Thomas Vigouroux Date: Tue, 5 May 2020 15:04:01 +0200 Subject: 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 --- autoload/nvim_treesitter.vim | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 autoload/nvim_treesitter.vim (limited to 'autoload') diff --git a/autoload/nvim_treesitter.vim b/autoload/nvim_treesitter.vim new file mode 100644 index 000000000..715befe0f --- /dev/null +++ b/autoload/nvim_treesitter.vim @@ -0,0 +1,3 @@ +function! nvim_treesitter#statusline(len) + return luaeval("require'nvim-treesitter'.statusline(_A)", a:len) +endfunction -- cgit v1.2.3-70-g09d2