summaryrefslogtreecommitdiff
path: root/autoload
diff options
context:
space:
mode:
authorThomas Vigouroux <tomvig38@gmail.com>2020-05-05 15:04:01 +0200
committerThomas Vigouroux <tomvig38@gmail.com>2020-05-05 20:06:45 +0200
commit7682a1a49f7c3be58df18dfc18ad3ba65dd3be1f (patch)
treee3534fa1b90b4769baff692dfbd1d6239e0b5a1a /autoload
parent5cc7407c7f730c552120fc7d7d9a136ae6b7035f (diff)
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
Diffstat (limited to 'autoload')
-rw-r--r--autoload/nvim_treesitter.vim3
1 files changed, 3 insertions, 0 deletions
diff --git a/autoload/nvim_treesitter.vim b/autoload/nvim_treesitter.vim
new file mode 100644
index 00000000..715befe0
--- /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